Raggdog
asked on
How can I use modalpopup extender to show a bigger version of an image?
Hi Experts
I have a formview in C#.
In this fv I have an image that is wrapped in a hyperlink. What I want to achieve is another image to popup when I click the image in the formview. Diffusing?
What I have so far is that the image opens in a new window. But I want the image to open in a modalpopup window.
Someone please help me?
This is my .aspx code, I have no code behind
I have a formview in C#.
In this fv I have an image that is wrapped in a hyperlink. What I want to achieve is another image to popup when I click the image in the formview. Diffusing?
What I have so far is that the image opens in a new window. But I want the image to open in a modalpopup window.
Someone please help me?
This is my .aspx code, I have no code behind
<asp:FormView ID="fvVarebilde" runat="server" DataKeyNames="vareID" DataSourceID="SqlDataSource_fvVaredetalj">
<ItemTemplate>
<asp:hyperlink ID="ImageID" runat="server" target="_blank" navigateurl='<%# Eval("filnavn","bilder/{0}") %>' >
<img src='<%# Eval("hovedbilde","bilder/{0}")%>' height="130" width="110" alt="produktbilde" />
</asp:hyperlink>
</ItemTemplate>
</asp:FormView>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I changed my code, so that my image is not in a hyperlink, but in an <imagebutton>. This because of the OnClick and code behind. I need help on this because I can not make this work. I click the image... the page reloads...and nothing more happens. I want a new image to show in a modalpopup.
I have done this before, but not in a formview... Is that a problem?
This is my .aspx and code behind
Open in new window