I have a Webpage having some controls like Text box, Buttons ,etc.,
- Asp:
- <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
- <asp:TextBox ID="TextBox2" runat="server" ReadOnly = "false"></asp:TextBox>
- <asp:TextBox ID="TextBox1" runat="server" ReadOnly = "false"></asp:TextBox>
- <asp:button runat="server" id="loadbtn" Text="Load" />
-
- C#:
- public static Array Load()
- {
- string a=textbox1.text.Tostring();
- // I Can't access the controls inside a static method.
- }
Please suggest some ideas .,