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