CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 2/10/2006 9:57:19 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 14 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
andieje
Asp.Net User
putting content pages in different directory to master page - doesn't work!!!2/10/2006 9:57:19 PM

0/0

Hi

I have what i am sure must be an easy problem: if i create content pages based on a master page and put the content pages in a different directory then i get lots of problems

Lets say I have a master page in my home directory and that contains some javascript in the same directory and i link to the javascript as so :

<script type="text/javascript" src="contacts.js"></script>

If i create a content page and put it in a different directory then the content page can't find the javascript. I have tried including the javascript in the master pages using an absolute reference from the home directory as shown below but this does not work either.

<script type="text/javascript" src="/contacts.js"></script>

<script type="text/javascript" src="~/contacts.js"></script>

How do i fix this??

Thanks a lot, andrea

 

andieje
Asp.Net User
Re: putting content pages in different directory to master page - doesn't work!!!2/10/2006 10:15:54 PM

0/0

what d'ya know - i fixed it thanks to rick strahl
src="< %= Request.ApplicationPath % >javascript/common/js"

giuseppe
Asp.Net User
Re: putting content pages in different directory to master page - doesn't work!!!2/25/2006 7:03:14 PM

0/0

that what I was looking for many thanks buddy....just one thing the correct sintax is:

src="< %= Request.ApplicationPath % >/javascript/common/js"

 

you forgot the /

 

Cheers,

 

Gisueppe

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:

Web:
putting content pages in different directory to master page ... putting content pages in different directory to master page - doesn't work!!! Last post 02-25-2006 2:03 PM by giuseppe. 2 replies. ...
ASP.Net 2.0 - Master Pages: Tips, Tricks, and Traps Apr 11, 2006 ... If a specific page doesn’t want it’s master page set, ...... In fact, the master page and content page may live in different directories. ...
Use Master Page functions in a Content Page? MSDN doesn't mention anything about this that I can find, nor any ... My Content Pages can already reference the Master Page through the ...
Master Pages in ASP.NET 2.0 This content will render in any content page that doesn’t reference this ... pages in your content pages, nesting master pages and how events work etc. ...
expression webdesigner Image from Master Page not shown on Pages ... Net pages. The root directory contains the master page .... images/pic.jpg" /> doesn't work as the page is not updated from the master tia, ...
Base Master Pages Where as in your post you have mentioned two different master pages for ... When I click on "Site Actions", the link to edit the page doesn't appear. ...
Microsoft Expression Expression Web Site novigation, Please help First, I was refering to putting stuff in the .master page's ContentPlaceHolder. ... use the .master page to create an .aspx page in a different directory. ...
CodeGuru: An In-Depth Coverage of ASP.NET 2.0's Master Pages: Part ... Feb 1, 2006 ... NET application with a master page and two content pages that are ... This method doesn't result in a performance hit but the drawback here ...
Deploying the Master Page (Master Pages and SharePoint part 4 of 6 ... Oct 24, 2008 ... Features can also deploy master pages to the master page gallery of a .... Sometimes copy and paste into command lines won’t work. ...
Piyush Shah's Blog : Sharing Master Pages amongst Applications by ... If you need to share Master Pages across applications and you don't want to ... master page since a week by publishing it as DLL and then putting it in GAC ...

Videos:
A New Way to look at Networking Google Tech Talks August 30, 2006 Van Jacobson is a Research Fellow at PARC. Prior to that he was Chief Scientist and co-founder of Packet Design. P...




Search This Site:










how to pass security ticket to remoting hosted in iis?

login script wont work

window authorization or form authorization?

when i modify an aspx file,the theme property will disappear.why?

geekspeak example - problems with step 14 of "getting started" - <network from=...........

about impersonation

dnn 3.1 and web services

waiting... waiting... for pro trial cd

scheduler

how to formsauthentication.signout() when the session is ended

custom membership provider - help please.

vwd 2008 sluggish between source & design views

publish website overwrites / erases existing ntfs directory permissions on server

3.0.7 site and host admin

roles and "currentrole"

treeview control

looking for a forum with treeview style !

menu substitution at runtime?

confused about asp.net, iis ans sql authentication and how it all fits together !

problem when implementing url rewriting

add reference in vb2005 web project to external directory

deployed asp.net application from local machine to web server

which is the visual studio.net for dotnetnuke 3.0.13

not again! type initializer problem

dynamic loading of usercontrol in asp.net 2.0 beta 2

login controls

how to strip source of embedded files from deployed folder

problem with trackbacks

deployment options

problem refreshing page with new theme

 
All Times Are GMT