forum

Home / DeveloperSection / Forums / OnClick for Hyperlink

OnClick for Hyperlink

Mark Devid 2162 28-Nov-2014

I'm new to ASP.NET and C# and also new to this forum but here is my problem. I'm trying to create a image gallery with ASP.NET Webforms(requirement) and C#. I'm using a Listview to show the thumbnails and when you click on the small picture the big version should show above in a img tag for example. But I cant find any "OnClick" code for a hyperlink. Do I have to do that with JavaScript? Thanks for all help. 

here is some of the code: 

<ItemTemplate> 
            <asp:HyperLink ID="ImageHyperLink" runat="server" ImageUrl='<%# Eval("Name","~/files/thumbs/{0}") %>' NavigateUrl='<%# Eval("Name","~/files/{0}") %>'></asp:HyperLink>              
</ItemTemplate>


Updated on 29-Nov-2014

Can you answer this question?


Answer

1 Answers

Liked By