开发者

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")) %>" />
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜