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.
veerendra kumarPosted Mar 5, 2015, 12:43 AM
Textbox1.Readonly="true";
Srinivas NadimpalliPosted Mar 4, 2015, 11:45 PM
Francis SusaimichaelPosted Mar 4, 2015, 5:45 PM
aspx markup:
CS :
protected void Page_Load(object sender, EventArgs e)
{
if (Page.IsPostBack)
{
TextBox1.Attributes.Add("disabled", "true");
}
}
Pankaj Kumar ChoudharyPosted Mar 4, 2015, 12:04 PM
TextBox1.Enabled = false;
TextBox2.Enabled = false;