I have a FormView in my page which it is getting information from Database as follows:
<asp:FormView ID="FormView1" runat="server" DataKeyNames="id"
DataSourceID="SqlDataSource1">
<EditItemTemplate>
id:
<asp:Label ID="idLabel1" runat="server" Text='<%# Eval("id") %>' />
<br />
Name:
<asp:TextBox ID="NameTextBox" runat="server" Text='<%# Bind("Name") %>' />
I also have a TextBox1 and Button out of this FormView, I want to know that how can I retrieve NameTextBox value when button1 is pressed!?
I would be thankful if anyone help.