asp.net - Problem in reference js file for IE7/8 -
I have a very strange problem in the ASP.Net page, the following references to the Javascript file work well in IE6
& lt; Script src = '~ / script / xxx.js' type = "text / javascript" & gt; & Lt; / Script & gt;
But IE is not working in 7/8, I have an essential error object while changing page in the following required tasks:
& Lt; Script src = '& lt;% # ResolveUrl ("~ / scripts / xxx.js")%> Type = "text / javascript" & gt; & Lt; / Script & gt;
Can anyone explain? Thank you.
~ / knows nothing about the browser, it needs to be relative path or a The complete A ResolveUrl method creates an asp.net path and can understand a browser.
Comments
Post a Comment