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





Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 2/8/2007 11:26:55 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 11 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
Rodhimas
Asp.Net User
MasterPage Path for <scripts..>2/8/2007 11:26:55 AM

0/0

Hi all.

 

I have readed a lot about using server controls intead of Html control so asp.net change the path and so (the classic image example), and it works cool but I still have one problem.

My source aspx have links to css and js files that contains all styles and scrypts. This links are like this: 

<

link href="css/css.css" rel="stylesheet" type="text/css" />

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

 

 and so I was wondering how to deal with thsese paths. What server control should I transform the <link> and <script> tags? 

 

Thanks a lot in advance:

 

David V.

 

 

 

farazsk11
Asp.Net User
Re: MasterPage Path for &lt;scripts..&gt;2/8/2007 12:41:25 PM

0/0

Hi,

With the title of this thread I assume that you are using a MasterPage and you are confused with the path of css and js files which has some different path for web controls. if this is the case then just drop the css on the master page. all the pages that are drived from master page can access that css without mentioning the link in those page and the css for all the controls will be applied automatically.

If this is your problem then above is the solution, if it is not then advise accordingly.

Thanks and best regards,


Faraz Shah Khan
MCP
http://farazsk11.spaces.live.com
I was born Intelligent, education Ruined me!!
Rodhimas
Asp.Net User
Re: MasterPage Path for <scripts..>2/8/2007 2:33:15 PM

0/0

yes, thats the problem. I can change all control to be server controls, but i don`t know what to do with css and js paths. I guess I could put the css and js in the html source of the master page, but I was wondering if theres a way to avoid doing so (it might be easier to disegners to work with a css file than the whole master page) Thanks a lot for your answer. David Varo
Zhao Ji Ma - MS
Asp.Net User
Re: MasterPage Path for <scripts..>2/12/2007 7:59:45 AM

0/0

1. for css 

<link runat="server" href="~/css/css.css" rel="stylesheet" type="text/css" />

2. for javascript, check following thread

http://forums.asp.net/thread/1390505.aspx

 


Zhao Ji Ma
Sincerely,
Microsoft Online Community Support

?Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ?
4 Items, 1 Pages 1 |< << Go >> >|



Search This Site:


Meet Our Sponsors:



Other Resources:

Getting @PATH variable for SSO use - macromedia.adobe_connect ... Getting @PATH variable for SSO use, > ROOT > NEWSGROUP > Adobe ... null controls in masterpage page_load. menu control dynamic items underneath other controls ...
Layout for each user logged in - ng.asp-net-forum ... <location path="PowerUsers"> <system.web> <authorization> <allow ... If you only want to change the layout then you can also do this by changing the masterpage. ...
Compatibility Properties Setup ... will use the paths of masterpage, login, logout and ... you have customized the masterpage for use with both ASP.NET ... path of the masterpage ...
MasterPage Properties (System.Web.UI) ... sets the application-relative, virtual directory path to the file from which the ... It is used by generated classes and is not intended for use within your code. ...
MasterPage Members (System.Web.UI) ... the control-state information for the server control's child ... Retrieves the physical path that a virtual path, either absolute or relative, maps to. ...
how to reference a outer javascript file in masterpage? - ASP.NET Forums Filed under: javascript, masterPage, .net, .NET 2.0 master page contentpage ... the masterpage, this will cause the masterpage to calculate the correct path for ...
Not all Polish unemployed want to work The MasterPage About Poland For : Culture | News | Weather | Wholesale Buying ... are human beings and they will take the path that is most beneficial to them. ...
Polish Postal System Labor Shortage The MasterPage About Poland For : Culture | News | Weather | Wholesale Buying ... that Poland will continue on a high growth rate path have not explained how ...
conditional masterpage based on browser? how to? - ASP.NET Forums i want to setup a mobile masterpage for my site. ... can anyone lead me down the path? how would this be done? ... masterpages for mobile, image-lite, text ...
Dependency Injection for ASP.Net pages - Spring.NET - Confluence <objects> <object id="masterPage" type="~/Master.aspx" /> <object id="basePage" ... Master page is defined using absolute path because it can be referenced from ...
ASP.Net 2.0 - Master Pages: Tips, Tricks, and Traps In fact, the MasterPage class derives from the UserControl class. ... If you need to use a relative path in an area where the runtime does not provide ...



 
All Times Are GMT