Пример #1
0
        protected void lbDBConnectionCopy_Click(object sender, EventArgs e)
        {
            XmlDocument webconfigDoc = new XmlDocument();

            webconfigDoc.Load(_WebConfigFilePath);

            ConnectStringView1.GetConnectString(webconfigDoc);
        }
Пример #2
0
        protected void btnLoadInfo_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(_FilePath))
            {
                XmlDocument webconfigDoc = new XmlDocument();
                webconfigDoc.Load(_FilePath);

                ConnectStringView1.GetConnectString(webconfigDoc);
                ClassFactoryView1.GetClassFactory(webconfigDoc);
                AutoRemindFunctionSetView1.GetFunctionSetting(webconfigDoc);
                MailSettingView1.GetMailSetting(webconfigDoc);
                AttendanceSettingView1.GetAttendanceSetting(webconfigDoc);
            }
            else
            {
                lbLoadMessage.Text = "请选择一个App.Config";
            }
        }
Пример #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //加载web.config文件
            if (!Page.IsPostBack)
            {
                XmlDocument webconfigDoc = new XmlDocument();
                webconfigDoc.Load(_WebConfigFilePath);

                ConnectStringView1.GetConnectString(webconfigDoc);
                ClassFactoryView1.GetClassFactory(webconfigDoc);
                SubSystemSetView1.GetSubSystemSet(webconfigDoc);
                MailSettingView1.GetMailSetting(webconfigDoc);
                SMSSettingView1.GetSMSSetting(webconfigDoc);
                ContactSettingView1.GetContactSetting(webconfigDoc);
                OtherWebConfig1.GetOtherWebConfig(webconfigDoc);
                AttendanceSettingView1.GetAttendanceSetting(webconfigDoc);
                Message = "";
            }
        }