Hi all...
I have HTML Controls as -
Issue - When I type a name say "Mahesh Sharma" , then I want to access the value "Mahesh Sharma" in code-behind (aspx.cs file).
When I type - txtName.Value - I get "Name" as Value.
How to access the user-entered value from backend ?
Francis SusaimichaelPosted Jan 7, 2016, 8:34 AM
Contact Us
Riddhi ValechaPosted Jan 7, 2016, 8:14 AM
Contact Us
--------
protected void btn_submit_Click(object sender, EventArgs e)
{
try
{
if (Page.IsPostBack == true)
{
string ss = txtEmail.Value; - Here I need to access the value "Mahesh Sharma"
}
}
catch (Exception err) { }
}
Francis SusaimichaelPosted Jan 7, 2016, 7:38 AM