By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,854 Members | 849 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,854 IT Pros & Developers. It's quick & easy.

PhysicalApplicationPath in <script> tag

P: n/a
href="<%Response.Write(Request.PhysicalApplication Path)%>/css/toolbar.cs
s" type="text/css" rel="stylesheet" >

This work fine
but the same trix doesn't work into <script> tag like this:
<script language="JavaScript" src="../js/javascript.js"></script>

i tryed replacing src attribut by:
src="<%Response.Write(Request.PhysicalApplicationP ath)%>/js/javascript.j

Any tought about how to set a somewhat relative path to the src


*** Sent via Developersdex ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies

P: n/a

Request.PhysicalApplicationPath return a path like "c:\inetpub\wwwroot\"
However "scr" attribute of Script specifies the location of an external script which requires to be a URL that is accessible on the server. It should be like "http:\\Server\script.js" so that it could be included when response back to the client

Bin Song, MCP
Nov 18 '05 #2

P: n/a
So then you'll probably want to write

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.