HI, I am net to asp.net can anyone help me pls,in my project i had five textfields and one button.
first i am giving input data to textfields,and after giving inputdata now i am clicking the button.when i press the button all the textfields are not editable.pls give some information to me.

Pankaj Kumar ChoudharyRank #80 · 24.4K reputationPosted Mar 4, 2015, 7:04 AM EST
TextBox1.Enabled = false;
TextBox2.Enabled = false;
Francis SusaimichaelRank #466 · 5.4K reputationPosted Mar 4, 2015, 12:45 PM EST
aspx markup:
CS :
protected void Page_Load(object sender, EventArgs e)
{
if (Page.IsPostBack)
{
TextBox1.Attributes.Add("disabled", "true");
}
}
Srinivas Nadimpalli7 reputationPosted Mar 4, 2015, 6:45 PM EST
veerendra kumar47 reputationPosted Mar 4, 2015, 7:43 PM EST
Textbox1.Readonly="true";