Click here to Skip to main content
15,925,868 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRandom number generation in Java Script... Pin
Balagurunathan S9-Sep-07 19:54
Balagurunathan S9-Sep-07 19:54 
AnswerRe: Random number generation in Java Script... Pin
Tamimi - Code9-Sep-07 20:13
Tamimi - Code9-Sep-07 20:13 
Questionconversion from data grid to telerik radGRid Pin
kunal_gct9-Sep-07 19:32
kunal_gct9-Sep-07 19:32 
QuestionHow to export data that contain images and text to word Pin
imranafsari9-Sep-07 18:40
imranafsari9-Sep-07 18:40 
AnswerRe: How to export data that contain images and text to word Pin
Chetan Patel9-Sep-07 21:09
Chetan Patel9-Sep-07 21:09 
QuestionAutoExtenderControl in ASP.NET Pin
seemamltn9-Sep-07 14:25
seemamltn9-Sep-07 14:25 
AnswerRe: AutoExtenderControl in ASP.NET Pin
Blue_Boy9-Sep-07 14:33
Blue_Boy9-Sep-07 14:33 
QuestionASP.NET generates absolute virtual path to WebResource.axd Pin
RamonCar9-Sep-07 11:44
RamonCar9-Sep-07 11:44 
Hello,
I work in a mutinational company that allocates http://myCompany/myCountry/.... for my web applications.

I develop an ASP.NET 2.0 app that works OK when run at http://myHost/myApp but when moved to the company's server (http://myCompany/myCountry/myApp) it fails to load some ASP.NET javascripts that the framework needs.

I'm talking about the javascript framework code that performs postbacks, event validation, etc. So the page doesn't work.

Looking inside the generated HTML, I find scripts references to

<script src="/MyApp/WebResource.axd?d=cgvtpYkUMiZVT5qyFbc_EA2&t=633167444770355332" type="text/javascript"></script><br />


So the browser, to load this javascript from ther server, prepends ONLY the hostname to the src value, and requests
http://myCompany/myApp/WebResource.axd?d=cgvtpYkUMiZVT5qyFbc_EA2&t=633167444770355332
instead of
http://myCompany/myCountry/myApp/WebResource.axd?d=cgvtpYkUMiZVT5qyFbc_EA2&t=633167444770355332

Everything would work (both in my computer and in the company host) if the reference were relative:

<script src="WebResource.axd?d=cgvtpYkUMiZVT5qyFbc_EA2&t=633167444770355332" type="text/javascript"></script><br />


But I don't know the way to modify the output code that ClientScriptManager class generates. For example, if I would know under which type / key this script is generated, I could be able to register another Script include for that type / key in the ClientScriptManager, overriding the first one. But I don't know how to find it. I cannot debug into the class (or I don't know how to do it)

Anybody can help me ?
Thanks in advance


Carlos
QuestionSession variables Pin
SLG319-Sep-07 8:56
SLG319-Sep-07 8:56 
AnswerRe: Session variables Pin
Pete O'Hanlon9-Sep-07 9:07
mvePete O'Hanlon9-Sep-07 9:07 
GeneralRe: Session variables Pin
SLG319-Sep-07 9:33
SLG319-Sep-07 9:33 
GeneralRe: Session variables Pin
Chetan Patel9-Sep-07 21:13
Chetan Patel9-Sep-07 21:13 
GeneralRe: Session variables Pin
SLG3110-Sep-07 2:22
SLG3110-Sep-07 2:22 
Questionchange error exception Pin
hardyyanto9-Sep-07 4:42
hardyyanto9-Sep-07 4:42 
AnswerRe: change error exception Pin
Blue_Boy9-Sep-07 11:48
Blue_Boy9-Sep-07 11:48 
GeneralRe: change error exception Pin
hardyyanto9-Sep-07 17:12
hardyyanto9-Sep-07 17:12 
GeneralRe: change error exception Pin
Blue_Boy9-Sep-07 20:49
Blue_Boy9-Sep-07 20:49 
QuestionDownloading file in firefox Pin
Mr.Sam9-Sep-07 3:12
Mr.Sam9-Sep-07 3:12 
AnswerRe: Downloading file in firefox Pin
Christian Graus9-Sep-07 3:51
protectorChristian Graus9-Sep-07 3:51 
GeneralRe: Downloading file in firefox [modified] Pin
Mr.Sam9-Sep-07 4:13
Mr.Sam9-Sep-07 4:13 
GeneralRe: Downloading file in firefox Pin
Christian Graus9-Sep-07 5:40
protectorChristian Graus9-Sep-07 5:40 
GeneralRe: Downloading file in firefox Pin
Mr.Sam9-Sep-07 5:56
Mr.Sam9-Sep-07 5:56 
GeneralRe: Downloading file in firefox Pin
Christian Graus9-Sep-07 6:41
protectorChristian Graus9-Sep-07 6:41 
Questionsending mail Pin
garga19-Sep-07 1:46
garga19-Sep-07 1:46 
AnswerRe: sending mail Pin
Christian Graus9-Sep-07 2:41
protectorChristian Graus9-Sep-07 2:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.