Help~~!How to set the path £¿
I write asp.net code like this:
...
<tr>
<td>
<a href="<%=Request.ApplicationPath%>/Web/GetPass.aspx" class="text2">
Forget Password
</a>
</td>
<td align="center" colSpan="2">
<P align="left"><asp:imagebutton id="SigninBtn" runat="server" ImageUrl = "~/images/szkm_31.gif"></asp:imagebutton>
</P>
</td>
</tr>
But when i use:
"ImageUrl = "<%=Request.ApplicationPath%>/images/szkm_31.gif" "instead of "ImageUrl = "~/images/szkm_31.gif" ",it show error.
i don't know why?
And The HTML code of picture like this
""UserControl/UserLogin/<%=Request.ApplicationPath%>/images/szkm_31.gif"" after i changed my code.
thanks.
|