示例#1
0
        protected void PubliclyTradedCompany_DataBinding(object sender, EventArgs e)
        {
            RadioButtonList rlist = (RadioButtonList)sender;
            DataView        dv    = (DataView)ClientInformationSqlDataSource.Select(DataSourceSelectArguments.Empty);

            switch (((string)dv[0]["isPubliclyTradedCompany"]))
            {
            case "0": rlist.SelectedIndex = 0; break;

            case "1": rlist.SelectedIndex = 1; break;

            default: break;
            }
        }
示例#2
0
        protected void EmployedByFinancialInstitution_DataBinding(object sender, EventArgs e)
        {
            RadioButtonList rlist = (RadioButtonList)sender;
            DataView        dv    = (DataView)ClientInformationSqlDataSource.Select(DataSourceSelectArguments.Empty);

            switch (((string)dv[0]["isInFinancialInstitution"]))
            {
            case "0": rlist.SelectedIndex = 0; break;

            case "1": rlist.SelectedIndex = 1; break;

            default: break;
            }
        }
示例#3
0
        protected void Title_DataBinding(object sender, EventArgs e)
        {
            RadioButtonList rlist = (RadioButtonList)sender;
            DataView        dv    = (DataView)ClientInformationSqlDataSource.Select(DataSourceSelectArguments.Empty);

            switch (((string)dv[0]["title"]).Trim())
            {
            case "Mr.": rlist.SelectedIndex = 0; break;

            case "Mrs.": rlist.SelectedIndex = 1; break;

            case "Ms.": rlist.SelectedIndex = 2; break;

            case "Dr.": rlist.SelectedIndex = 3; break;

            default: break;
            }
        }
示例#4
0
        protected void EmploymentStatus_DataBinding(object sender, EventArgs e)
        {
            RadioButtonList rlist = (RadioButtonList)sender;
            DataView        dv    = (DataView)ClientInformationSqlDataSource.Select(DataSourceSelectArguments.Empty);

            switch (((string)dv[0]["employmentStatus"]).Trim())
            {
            case "Employed": rlist.SelectedIndex = 0; break;

            case "Self-employed": rlist.SelectedIndex = 1; break;

            case "Retired": rlist.SelectedIndex = 2; break;

            case "Student": rlist.SelectedIndex = 3; break;

            case "Not Employed": rlist.SelectedIndex = 4; break;

            case "Homemaker": rlist.SelectedIndex = 5; break;

            default: break;
            }
        }