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


Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  why???? - shreya verma  08-May-08 08:00 8:00:32 AM
      Re - Sunil Lakshkar  08-May-08 08:07 8:07:09 AM
      check here - Vasanthakumar D  08-May-08 08:07 8:07:58 AM
          Yes It is........ - shreya verma  08-May-08 08:14 8:14:02 AM
      RE: - Sunil Lakshkar  08-May-08 08:15 8:15:55 AM
          Thanks... - shreya verma  08-May-08 08:22 8:22:24 AM
View Posts