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 .,

Mangesh GPosted Jan 3, 2017, 5:15 AM
Dinesh SanthalingamPosted Jan 3, 2017, 5:12 AM
Mangesh Gaherwar
Mangesh GPosted Jan 3, 2017, 5:09 AM
{
string a = TextBox1.Text;
}
Dinesh SanthalingamPosted Jan 3, 2017, 5:05 AM
Mangesh GPosted Jan 3, 2017, 4:59 AM
Dinesh SanthalingamPosted Jan 3, 2017, 4:44 AM
Mangesh GPosted Jan 3, 2017, 4:32 AM
Dinesh SanthalingamPosted Jan 3, 2017, 4:07 AM