KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
What is the correct way to reference an image in ASP.NET for live deployment on IIS? The following works in dev and production: <asp:ImageButton ID="ibnEdit" runat="server" OnClick="ibnEdit_Click" ImageUrl="~/App_Themes/Default/images/one.png" Visible="false" ToolTip="Edit" /> The following doesn't work in either: (why not?) <img src="~/App_Themes/Default/images/two.gif" /> The following works in dev but not in production: <img src="../App_Themes/Default/images/two.gif" />
Tags (comma-separated)
Save Edits
Cancel