D
Daves
<form ID="Form1" runat="server">
<asp:FormView ID="FormView1" Runat="server">
<ItemTemplate>
<asp:Button ID="Button1" runat="server" Text="Breyta" CommandName="Edit"/>
...
This is what won't work:
Button Button1 = (Button) FormView1.FindControl("Button1");
it returns null... why oh why?
<asp:FormView ID="FormView1" Runat="server">
<ItemTemplate>
<asp:Button ID="Button1" runat="server" Text="Breyta" CommandName="Edit"/>
...
This is what won't work:
Button Button1 = (Button) FormView1.FindControl("Button1");
it returns null... why oh why?