Click here to Skip to main content
15,890,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have problem with calling HttpHandler.ashx..in asp i added imageurl for asp:image control like this:
ImageUrl= "~/DesktopModules/Philip.E1013542_skupine/Handler.ashx?id=62"


This shows picture in image control. But i would like to pass query string to handler(ex. "id"):

.../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?
Posted
Updated 14-Aug-10 12:48pm
v5

Try this

on target page load event :-
string firstname = Request.QueryString("ID");
 
Share this answer
 
try these

'<% "/DesktopModules/Philip.E1013542_skupine/Handler.ashx?id=" & Eval("id") %>'


or

'<%= "/DesktopModules/Philip.E1013542_skupine/Handler.ashx?id=" & Eval("id") %>'



avoid using ~ its almost useless.
 
Share this answer
 
Figured it out. In pageload i added ImageUrl to asp:image control and querystring. I totally forgot that. Thanks for help
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900