How do you change the readonly mode of FormView or DetailsView .
Ive tried the following but none work:
if (IsPostBack)
{
if (Request.Form["__EVENTTARGET"] == "lnkEdit")
{
FormView1.ChangeMode(FormViewMode.Edit);
FormView1.DefaultMode = FormViewMode.Edit;
}
}
and tried this as well:
protected void lnkEdit_Click(object sender, EventArgs e)
{
FormView1.ChangeMode(FormViewMode.Edit);
}
Any ideas.
Ive tried the following but none work:
if (IsPostBack)
{
if (Request.Form["__EVENTTARGET"] == "lnkEdit")
{
FormView1.ChangeMode(FormViewMode.Edit);
FormView1.DefaultMode = FormViewMode.Edit;
}
}
and tried this as well:
protected void lnkEdit_Click(object sender, EventArgs e)
{
FormView1.ChangeMode(FormViewMode.Edit);
}
Any ideas.