protected void gdTelephoneDetails_SelectedIndexChanged(object sender, EventArgs e) { switch ((string)Session["Mode"]) { case "Verify": mvTelephone.SetActiveView(mvTelephone.Views[1]); FvTelephone.ChangeMode(FormViewMode.Edit); break; case "ReadOnly": mvTelephone.SetActiveView(mvTelephone.Views[2]); fvReadonly.ChangeMode(FormViewMode.ReadOnly); break; } }
protected void Page_Load(object sender, EventArgs e) { switch (Request.Params["Mode"]) { case "DataEntry": mvTelephone.SetActiveView(mvTelephone.Views[1]); FvTelephone.ChangeMode(FormViewMode.Insert); break; case "Verify": mvTelephone.SetActiveView(mvTelephone.Views[0]); break; case "ReadOnly": mvTelephone.SetActiveView(mvTelephone.Views[0]); break; } Session["Mode"] = Request.Params["Mode"]; }
protected void lnltest_Click(object sender, EventArgs e) { mvTelephone.SetActiveView(mvTelephone.Views[2]); FvTelephone.ChangeMode(FormViewMode.Insert); }