private void Init_Load() { if (Request.QueryString["id"] != null) { hfAppId.Value = Request.QueryString["id"]; Guid sId = Guid.Empty; Guid.TryParse(hfAppId.Value, out sId); SEA_Stuff1.SId = sId; } if (Request.QueryString["mode"] == "ReadOnly") { SEA_Stuff1.ChangeMode(FormViewMode.ReadOnly); } if (Request.QueryString["mode"] == "Edit") { SEA_Stuff1.ChangeMode(FormViewMode.Edit); } }
private void SEA_Stuff1_Canceled(object sender, EventArgs e) { SEA_Stuff1.ChangeMode(FormViewMode.ReadOnly); }