当前位置: 首页>>代码示例>>C#>>正文


C# FormViewInsertEventArgs类代码示例

本文整理汇总了C#中FormViewInsertEventArgs的典型用法代码示例。如果您正苦于以下问题:C# FormViewInsertEventArgs类的具体用法?C# FormViewInsertEventArgs怎么用?C# FormViewInsertEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


FormViewInsertEventArgs类属于命名空间,在下文中一共展示了FormViewInsertEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: FormView_SOFile_ItemInserting

    protected void FormView_SOFile_ItemInserting(object sender, FormViewInsertEventArgs e)
    {
        TextBox txt1 = (TextBox)FormView_SOFile.FindControl("CircularsTextBox");
        TextBox txt2 = (TextBox)FormView_SOFile.FindControl("DateOfCircularsTextBox");
        TextBox txt3= (TextBox)FormView_SOFile.FindControl("CircularsTextBox");
        TextBox txt4 = (TextBox)FormView_SOFile.FindControl("SubjectTextBox");
        TextBox txt5 = (TextBox)FormView_SOFile.FindControl("PageNoTextBox");
        DateTime curr_date = DateTime.Now;

        if (txt1.Text=="")
        {
            e.Values["Circulars"] = 0;
        }
        if (txt2.Text == "")
        {
            e.Values["DateOfCirculars"] = curr_date;
        }

        if (txt4.Text == "")
        {
            e.Values["Subject"] = "";
        }
        if (txt5.Text == "")
        {
            e.Values["PageNo"] = 0;
        }
        DropDownList DropDownList1 = FormView_SOFile.FindControl("DropDownList1") as DropDownList;
        e.Values["Department"] = DropDownList1.SelectedValue;
    }
开发者ID:Siddhartha261,项目名称:IGRSS,代码行数:29,代码来源:SOFile.aspx.cs

示例2: FormView_Diary_ItemInserting

 protected void FormView_Diary_ItemInserting(object sender, FormViewInsertEventArgs e)
 {
     ListBox ListBox_office = FormView_Diary.FindControl("ListBox_officename") as ListBox;
     int[] selectedIndices = ListBox_office.GetSelectedIndices();
     e.Values["NoOfOfficeinspected"] = selectedIndices.Length;
     ViewState["SelectedItems"] = selectedIndices;
 }
开发者ID:UrviGandhi,项目名称:IGRSS,代码行数:7,代码来源:Diary.aspx.cs

示例3: formView_ItemInserting

 protected void formView_ItemInserting(object sender, FormViewInsertEventArgs e)
 {
     if (e.Values["StrategyID"].ToString() == "None")
         e.Values["Strategy"] = null;
     if (e.Values["Category"].ToString() == "None")
         e.Values["Category"] = null;
 }
开发者ID:garsiden,项目名称:Report-Generator,代码行数:7,代码来源:add.aspx.cs

示例4: FormView_Tarankit_ItemInserting

    protected void FormView_Tarankit_ItemInserting(object sender, FormViewInsertEventArgs e)
    {
        RadioButtonList Radio_Tarankit = FormView_Tarankit.FindControl("Radio_tarankit") as RadioButtonList;
        e.Values["Tarankit_Atarnkit"] = Radio_Tarankit.SelectedValue;

        DropDownList Drop_mlaname = FormView_Tarankit.FindControl("Drop_mlaname") as DropDownList;
        e.Values["mlaName"] = Drop_mlaname.SelectedValue;
    }
开发者ID:Siddhartha261,项目名称:IGRSS,代码行数:8,代码来源:VidhansabhaTarankitQuestionRegister.aspx.cs

示例5: FormView_OutWardRegister_ItemInserting

    protected void FormView_OutWardRegister_ItemInserting(object sender, FormViewInsertEventArgs e)
    {
        DropDownList Dropdown_CopyTo = FormView_OutWardRegister.FindControl("DropDownList_CopyTo") as DropDownList;
        e.Values["Copy_To"] = Dropdown_CopyTo.SelectedValue;

        ListBox ListBox_Office = FormView_OutWardRegister.FindControl("ListBox_Office_CopyTo") as ListBox;
        e.Values["Office_Copy_To"] = ListBox_Office.SelectedValue;
    }
开发者ID:Siddhartha261,项目名称:IGRSS,代码行数:8,代码来源:OutwardRegister_Latest.aspx.cs

示例6: FormView_BookForm_ItemInserting

    protected void FormView_BookForm_ItemInserting(object sender, FormViewInsertEventArgs e)
    {
        DropDownList DropDown_EmployeeName = FormView_BookFormRegister.FindControl("DropDownList_EmployeeName") as DropDownList;
        e.Values["Emp_Name"] = DropDown_EmployeeName.SelectedValue;

        DropDownList DropDownList1 = FormView_BookFormRegister.FindControl("DropDownListDepartment") as DropDownList;
        e.Values["Dept_name"] = DropDownList1.SelectedValue;
    }
开发者ID:Siddhartha261,项目名称:IGRSS,代码行数:8,代码来源:BookFormsRegister.aspx.cs

示例7: FormView_Inquiry_ItemInserting

    protected void FormView_Inquiry_ItemInserting(object sender, FormViewInsertEventArgs e)
    {
        DropDownList DropDownEmployeeName = FormView_Inquiry.FindControl("Name_Of_EmployeeDropDown") as DropDownList;
        e.Values["Name_Of_Employee"] = DropDownEmployeeName.SelectedValue;

        DropDownList DropDownDesignation = FormView_Inquiry.FindControl("Drop_employeedesignation") as DropDownList;
        e.Values["Designation_Of_Employee"] = DropDownDesignation.SelectedValue;
    }
开发者ID:UrviGandhi,项目名称:IGRSS,代码行数:8,代码来源:PrimaryInvestigation-InquiryRegister.aspx.cs

示例8: FormView_Vigilance_ItemInserting

    protected void FormView_Vigilance_ItemInserting(object sender, FormViewInsertEventArgs e)
    {
        DropDownList DropDownList1 = FormView_Vigilance.FindControl("designation") as DropDownList;
        e.Values["emp_desig"] = DropDownList1.SelectedValue;

        DropDownList DropDown_employeename = FormView_Vigilance.FindControl("DropDownList_employeename") as DropDownList;
        e.Values["empname"] = DropDown_employeename.SelectedValue;
    }
开发者ID:Siddhartha261,项目名称:IGRSS,代码行数:8,代码来源:VigilanceRegister.aspx.cs

示例9: FormView_SunavniRegister_ItemInserting

    protected void FormView_SunavniRegister_ItemInserting(object sender, FormViewInsertEventArgs e)
    {
        DropDownList DropDownList_AppealNo = FormView_SunavniRegister.FindControl("DropDownList_AppealNo") as DropDownList;
        e.Values["AppealNo"] = DropDownList_AppealNo.SelectedValue;

        DropDownList DropDownList_Versus = FormView_SunavniRegister.FindControl("DropDownList_EmployeeName") as DropDownList;
        e.Values["Versus"] = DropDownList_Versus.SelectedValue;
    }
开发者ID:Siddhartha261,项目名称:IGRSS,代码行数:8,代码来源:SunavniRegister.aspx.cs

示例10: FormView_GrantRegister_ItemInserting

 protected void FormView_GrantRegister_ItemInserting(object sender, FormViewInsertEventArgs e)
 {
     DropDownList DropDownList1 = FormView_GrantRegister.FindControl("DropDownListBillNo") as DropDownList;
     if (DropDownList1 != null)
     {
         e.Values["BillNo"] = DropDownList1.SelectedValue;
     }
 }
开发者ID:Siddhartha261,项目名称:IGRSS,代码行数:8,代码来源:GrantRegister.aspx.cs

示例11: FormView_Marriagecertificate_ItemInserting

    protected void FormView_Marriagecertificate_ItemInserting(object sender, FormViewInsertEventArgs e)
    {
        DropDownList DropDown_Taluka = FormView_Marriagecertificate.FindControl("DropDownList_Taluka") as DropDownList;
        e.Values["Taluka"] = DropDown_Taluka.SelectedValue;

        DropDownList DropDown_District = FormView_Marriagecertificate.FindControl("DropDownList_District") as DropDownList;
        e.Values["District"] = DropDown_District.SelectedValue;
    }
开发者ID:Siddhartha261,项目名称:IGRSS,代码行数:8,代码来源:MarriageRegister.aspx.cs

示例12: FormView1_ItemInserting

    protected void FormView1_ItemInserting(object sender, FormViewInsertEventArgs e)
    {
        if (au != null)
        {
            e.Values.Add("ucrea", au.UserName);

        }
        //e.Values.Add("chkPersonaJuridica", true);
    }
开发者ID:royriojas,项目名称:RGEN2,代码行数:9,代码来源:vNuevoAseguradoRapido.aspx.cs

示例13: frmFollowupAction_ItemInserting

    protected void frmFollowupAction_ItemInserting(object sender, FormViewInsertEventArgs e)
    {
        e.Values["CompanyId"] = Company.CompanyId;

        if (String.IsNullOrEmpty(e.Values["Probability"].ToString()))
            e.Values["Probability"] = Convert.ToDecimal("0");
        else
            e.Values["Probability"] = Convert.ToDecimal(e.Values["Probability"]);
    }
开发者ID:sidneylimafilho,项目名称:InfoControl,代码行数:9,代码来源:CustomerFollowupAction.aspx.cs

示例14: FormView_Diary_ItemInserting

 protected void FormView_Diary_ItemInserting(object sender, FormViewInsertEventArgs e)
 {
     DropDownList DropDown_DaysDuringMonth = FormView_Diary.FindControl("DropDownList_DaysDuringMonth") as DropDownList;
     e.Values["Daysduringmonth"] =Convert.ToInt32(DropDown_DaysDuringMonth.SelectedValue);
     ListBox ListBox_office = FormView_Diary.FindControl("ListBox_officename") as ListBox;
     int[] selectedIndices = ListBox_office.GetSelectedIndices();
     e.Values["NoOfOfficeinspected"] = selectedIndices.Length;
     ViewState["SelectedItems"] = selectedIndices;
 }
开发者ID:Siddhartha261,项目名称:IGRSS,代码行数:9,代码来源:Diary.aspx.cs

示例15: AddInsertParameterValues

    private void AddInsertParameterValues(FormViewInsertEventArgs e)
    {
        ISNet.WebUI.WebCombo.WebCombo cityStateZipWebCombo =
            fvClient.FindControl("wcCityStateZip") as ISNet.WebUI.WebCombo.WebCombo;
        e.Values.Add("CityStateZipGuid", cityStateZipWebCombo.SelectedRow.Value);

        ISNet.WebUI.WebCombo.WebCombo paymentInfoWebCombo =
            fvClient.FindControl("wcPaymentInfo") as ISNet.WebUI.WebCombo.WebCombo;
        e.Values.Add("PaymentInfoGuid", paymentInfoWebCombo.SelectedRow.Value);
    }
开发者ID:ankit-defacto,项目名称:PSS,代码行数:10,代码来源:ClientDetail.ascx.cs


注:本文中的FormViewInsertEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。