Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If how I'm reading this is correct, you're now running the WebApp from the domain root of IIS7 now instead of WebApp1 from your development environment?</p> <p>So, if my assumption is correct, then <strong><em>~/</em></strong> should now resolve to <strong><em><a href="http://localhost/" rel="nofollow noreferrer">http://localhost/</a></em></strong> instead of <strong><em><a href="http://localhost/WebApp1/" rel="nofollow noreferrer">http://localhost/WebApp1/</a></em></strong></p> <p>If that is all still correct, then your folder structure has all moved up one level with your ~/scripts folder in the absolute path:</p> <p><a href="http://localhost/Scripts/" rel="nofollow noreferrer">http://localhost/Scripts/</a></p> <p>and your images folder as:</p> <p><a href="http://localhost/Content/Images/" rel="nofollow noreferrer">http://localhost/Content/Images/</a></p> <p>In order to access your images from your scripts, you can use a number of methods. The simplest is to use the relative path from your scripts directory: <em>"../Content/Images/MyImage.jpg"</em> </p> <p>Or you can use document.location.host to build the fully qualified path name within the javascript: <em>document.location.host + "/Content/Images/MyImage.jpg"</em></p> <p>Another method is to have ASP.NET build this part of the script dynamically so that the fully qualified path name is injected.You can do this by using <em>ScriptManager.RegisterStartupScript</em> or <em>ScriptManager.RegisterScriptBlock</em></p> <p>There's really many ways to skin this cat, they're just the first 3 I can think of off the top of my head.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload