c# - Path of home directory in asp.net -
I am using the Urlrewrite iis module, my virtual path: local host / news / example-content HTML
How can I fix this? You can use the Server.MapPath method: & lt; Script src = "js / jquery.min.js" & gt; & Lt; / Script & gt; = & gt;
Localhost / News / JS / JqueryMM.JS
& lt; Script src = "../ js / jquery.min.js" & gt; & Lt; / Script & gt; = & gt;
localhost / news /... js / jquery.mmjs
& lt; Script src = '& lt;% = server mappath ("/ ~ js / jquery.min.js")%> Type = "text / javascript" & gt; & Lt; / Script & gt;
Comments
Post a Comment