protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { MvInspectionIternary.SetActiveView(MvInspectionIternary.Views[4]); } }
protected void GvInspectionDetailsIns_SelectedIndexChanged(object sender, EventArgs e) { ViewState["ScheculeId"] = GvYearlyInspection.SelectedDataKey.Value.ToString(); fldScheduleId.Value = ViewState["ScheculeId"].ToString(); if (Request.Params["Mode"] != null) { switch (Request.Params["Mode"]) { case "InspectionItenaryDe": MvInspectionIternary.SetActiveView(MvInspectionIternary.Views[0]); FvInspectionItenaryReadOnly.ChangeMode(FormViewMode.ReadOnly); break; case "InspectionItenary": MvInspectionIternary.SetActiveView(MvInspectionIternary.Views[0]); FvInspectionIternary.ChangeMode(FormViewMode.ReadOnly); break; } } }
protected void GvInspectionIternary_SelectedIndexChanged(object sender, EventArgs e) { MvInspectionIternary.SetActiveView(MvInspectionIternary.Views[3]); FvInspectionItenaryReadOnly.ChangeMode(FormViewMode.ReadOnly); }