Hi everyone,
Let me explain the scenario.
I have to display a page which will show user's personal information along with his profile picture and signature (after log-in).
The profile picture and signature are stored in database.
I am using 2 Image control on the web page. I am retrieving the image using http handler.
<asp:Image ID="imgUserImage" runat="server" AlternateText="User Photo" Height="130px" Width="150px" />
<br /> <asp:Image ID="imgUserSign" runat="server" AlternateText="User Signature"
Height="40px" Width="150px" />
Now the user id will be obtained at runtime. So I am assigning the url to the image at runtime like this:
imgUserImage.ImageUrl = "showUserImage.ashx?imgtype=photo&id=" + empid;
imgUserImage.ImageUrl = "showUserImage.ashx?imgtype=sig&id=" + empid;
Based on the imgtype querystring, the handler is processing the request and will display corresponding image.
Now the problem is, the
ProcessRequest
method is called only once (after Page_Load of aspx) which I think is correct.
Is there a way I can show both the images on the page using the handler.
I couldn't find a solution on the web. :(
Thanks!