why???? |
| shreya verma posted at 08-May-08 08:00 |
M doing this on page load
protected void Page_Load(object sender, EventArgs e)
{
string EmpID = (string)Request.QueryString["empid"];
if (!Page.IsPostBack)
{
txtEmpName.ReadOnly = true;
txtMySiteURL.ReadOnly = true;
txtRO.ReadOnly = true;
txtEMail.ReadOnly = true;
FileUpload1.Enabled = false;
btnUpdate2.Enabled = false;
}
SetValue(EmpID);
}
and this on button click
protected void btnEdit6_Click(object sender, EventArgs e)
{
txtEmpName.ReadOnly = false;
txtMySiteURL.ReadOnly = false;
txtRO.ReadOnly = false;
txtEMail.ReadOnly = false;
FileUpload1.Enabled = true;
btnUpdate2.Enabled = true;
}
from my point of view it will work but it works on page load but when click on edit button it doesn't work, why??? i did same in another page then there it works perfectly |
|