• 找到控件


       protected void method_SelectedIndexChanged(object sender, EventArgs e)
            {
                try
                {
                    CustDropDownList ddlbaoxian = (CustDropDownList)sender;//通过sender找到
                    int iCount = (ddlbaoxian.NamingContainer as ListViewDataItem).DataItemIndex;

                    ListViewDataItem lvdi = lv5.Items[iCount]; //CustListView的ID
                    string strPayItem = ddlbaoxian.SelectedItem.Value;
                    CustDropDownList ddlbaoxians = (CustDropDownList)lvdi.FindControl("ddlbaoxian");
                    CustLabel lblProp_MainInsKind = (CustLabel)lvdi.FindControl("lblProp_MainInsKind");
                    ddlbaoxians.SelectByValue(strPayItem);
                    String strlblProp_MainInsKind = lblProp_MainInsKind.Text.Trim();
                }
                catch (Exception ex)
                {
                    SaveLog(ex);
                    UnLock();
                }
            }

         //先找到CustListView
                for (int i = 0; i < lv3.Items.Count; i++)
                {
                    ListViewDataItem ItemDetail = lv3.Items[i];
                    CustListView lv1Rider = (CustListView)ItemDetail.FindControl("lv1Rider");
                    if (lv1Rider != null)
                    {
                        for (int j = 0; j < lv1Rider.Items.Count; j++)
                        {

    111111
  • 相关阅读:
    ftl总结
    关于button的自动刷新
    判断json格式中是否含有key
    main方法的参数
    开发笔记--java.lang.OutOfMemoryError: PermGen space异常处理
    C/C++混合编程
    MFC 模块状态的实现
    类的私有private构造函数 ,为什么要这样做
    MFC DLL 导出函数的定义方式
    关于 AfxGetStaticModuleState ()
  • 原文地址:https://www.cnblogs.com/whl4835349/p/6374465.html
Copyright © 2020-2023  润新知