开发者

Problems with ImageHandler

开发者 https://www.devze.com 2023-01-11 08:39 出处:网络
I have problem with calling ImageHandler..in asp i add imageurl like this: ImageUrl= \"~/DesktopModules/Philip.E1013542_skupine/Handl开发者_如何转开发er.ashx?id=62\"

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

精彩评论

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