Problems with ImageHandler
I have problem with calling ImageHandler..in asp i add imageurl like this:
ImageUrl= "~/DesktopModules/Philip.E1013542_skupine/Handl开发者_如何转开发er.ashx?id=62"
This shows picture in asp:image control. But i would like to retrieve id integer from query string like this:
.../Default.aspx?id=62
I tryed like this
'<% "~/DesktopModules/Philip.E1013542_skupine/Handler.ashx?id=" & Eval("id") %>'
but this doesn't calls handler at all..tryed with breakpoints and nothing.
What am i doing wrong?
Try this way:
<img src="<%= Url.Content("~/DesktopModules/Philip.E1013542_skupine/Handler.ashx?id=" + Request.QueryString("id")) %>" />
精彩评论