protected void FvVendorOffence_DataBound(object sender, EventArgs e) { if (FvVendorOffence.CurrentMode == FormViewMode.Insert) { ((TextBox)FvVendorOffence.FindControl("txtNameIns")).Text = Session["Name"].ToString(); } }
protected void gvRenewVendor_SelectedIndexChanged(object sender, EventArgs e) { mvInspectionDetails.SetActiveView(mvInspectionDetails.Views[1]); FvVendorOffence.ChangeMode(FormViewMode.ReadOnly); }
protected void gvRenewVendor_SelectedIndexChanged(object sender, EventArgs e) { Session["Name"] = gvRenewVendor.Rows[gvRenewVendor.SelectedIndex].Cells[2].Text; mvVendorOffence.SetActiveView(mvVendorOffence.Views[1]); FvVendorOffence.ChangeMode(FormViewMode.Insert); }
protected void btnFileNo_Click(object sender, EventArgs e) { mvInspectionDetails.SetActiveView(mvInspectionDetails.Views[1]); FvVendorOffence.ChangeMode(FormViewMode.ReadOnly); fldVendorOffenceId.Value = FvVendorOffence.DataKey.Value.ToString(); }