I’m trying to get value from input in code behind the problem is value always return empty "" when im using master page but its working fine without master page
html
<asp:UpdatePanel ID="UpdatePanel3" runat="server">
<ContentTemplate>
<form action="#" method="post" >
<input type="text" class="form-control" runat="server" id="email" placeholder="email" />
</form>
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="btnRegister" />
</Triggers>
</asp:UpdatePanel>
code behind
protected void btnRegister_Click(object sender, EventArgs e)
{
string email = email.Value; //retun empty " "
}
2
Answers
you have to use
and get value
i just removed other
from MasterPage and its working fine now