Problem resolving URL for a Script Tag in an ASP.NET app in the Intranet

I have this piece of code:

Page.ClientScript.RegisterClientScriptInclude(this.GetType(), Guid.NewGuid().ToString(), this.ResolveUrl("~/Scripts/min.js"));

When we push to our QA server - http://qa.example.com - it works just fine, but when we push to an address in the intranet - http://intranet/app - it won't find the script.

Any suggestions?

Answers


You Intranet's root is http://intranet not http://intranet/app - your RegisterClientScriptInclude in is looking in http://intranet/scripts/min.js not http://intranet/app/scripts.


Need Your Help

How to retrieve the value from Select html element using JS prototype in php?

php javascript prototypejs

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

How to pass instance of MessageBox from grid to controller?

extjs messagebox args

I need to pass instance of my MessageBox so I can close it inside the success function of my Ajax request which is inside the controller. This way, i won't need to add refs for controller to look f...