B
Ben
Hi,
i try to reach in code-behind a linkbutton embedded into an ItemTemplate
element of a gridview.
But i'm stuck ....
<Columns>
<asp:TemplateField><ItemTemplate>
<asp:LinkButton ID="lb1" runat="server" OnClientClick="return
confirm(Sure?');"
CommandName="Delete" Text="go" >
</asp:LinkButton>
</ItemTemplate></asp:TemplateField>
....
my code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Dim tm As TemplateField
Dim it As ITemplate
Dim lk As LinkButton
tm = GridView1.Columns.Item(0)
it = tm.ItemTemplate
lk=???
Thanks for help
Ben
i try to reach in code-behind a linkbutton embedded into an ItemTemplate
element of a gridview.
But i'm stuck ....
<Columns>
<asp:TemplateField><ItemTemplate>
<asp:LinkButton ID="lb1" runat="server" OnClientClick="return
confirm(Sure?');"
CommandName="Delete" Text="go" >
</asp:LinkButton>
</ItemTemplate></asp:TemplateField>
....
my code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Dim tm As TemplateField
Dim it As ITemplate
Dim lk As LinkButton
tm = GridView1.Columns.Item(0)
it = tm.ItemTemplate
lk=???
Thanks for help
Ben