I have started to learn asp.net.I have added a simple registration form.In form, there are few input field.Now I want to get text from the input field in codebehind.
<div id=”register-form” style=”display: none;”>
<div class=”form-group”>
<asp:TextBox ID=”Name” placeholder=”Enter your name” CssClass=”form-control” runat=”server”></asp:TextBox>
</div>
<div class=”form-group”>
<asp:TextBox ID=”RegEmail” placeholder=”Enter your email” CssClass=”form-control” runat=”server”></asp:TextBox>
</div>
<div class=”form-group”>
<asp:TextBox ID=”RegPassword” placeholder=”Enter your password” CssClass=”form-control” runat=”server”></asp:TextBox>
</div>
<div class=”form-group”>
<asp:TextBox ID=”ConfirmPassword” placeholder=”Enter your confirm password” CssClass=”form-control” runat=”server”></asp:TextBox>
</div>
<div class=”form-group”>
<div class=”row”>
<div class=”col-sm-6 col-sm-offset-3″>
<asp:Button ID=”Register” AutoPostback=”false” OnClientClick=”UserRegistration.userReg();return false;” CssClass=”form-control btn btn-register” runat=”server” Text=”Register” />
</div>
</div>
</div>
</div>
How can I do this?