hi
I have a grid that display images using image button: I want to be able to retrieve the ID and a response.redirect when click. This is my code:
My Code Behind:
I have a grid that display images using image button: I want to be able to retrieve the ID and a response.redirect when click. This is my code:
| <ItemTemplate> |
| <asp:ImageButton ID="ImageButton1" runat="server" |
| ImageUrl="~/image/first.png" /> |
| <br /> |
| <asp:Label ID="BranchLabel" Width="150px" runat="server" |
| Text='<%# Eval("Branch") %>' /> |
| <br /> |
| <br /> |
| </ItemTemplate> |
My Code Behind:
| Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load |
| Dim imagebutton As ImageButton = TryCast(Page.Master.FindControl("RadGrid1"), ImageButton) |
| End Sub |
Thanks