Exemplo n.º 1
0
 protected void FvVendorOffence_DataBound(object sender, EventArgs e)
 {
     if (FvVendorOffence.CurrentMode == FormViewMode.Insert)
     {
         ((TextBox)FvVendorOffence.FindControl("txtNameIns")).Text = Session["Name"].ToString();
     }
 }
Exemplo n.º 2
0
 protected void gvRenewVendor_SelectedIndexChanged(object sender, EventArgs e)
 {
     mvInspectionDetails.SetActiveView(mvInspectionDetails.Views[1]);
     FvVendorOffence.ChangeMode(FormViewMode.ReadOnly);
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 protected void btnFileNo_Click(object sender, EventArgs e)
 {
     mvInspectionDetails.SetActiveView(mvInspectionDetails.Views[1]);
     FvVendorOffence.ChangeMode(FormViewMode.ReadOnly);
     fldVendorOffenceId.Value = FvVendorOffence.DataKey.Value.ToString();
 }