예제 #1
0
        protected void drpType_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (drpType.SelectedValue == "0")
            {
                divBraidDetails.Visible     = false;
                lblTypeValidation.Visible   = true;
                lblTypeValidation.ForeColor = Color.Red;
            }
            else if (drpType.SelectedValue == "B")
            {
                styleList  = handler.BLL_GetStyles();
                widthList  = handler.BLL_GetWidths();
                lengthList = handler.BLL_GetLengths();

                rblStyle.DataSource     = styleList;
                rblStyle.DataTextField  = "Description";
                rblStyle.DataValueField = "StyleID";
                rblStyle.DataBind();

                rblLength.DataSource     = lengthList;
                rblLength.DataTextField  = "Description";
                rblLength.DataValueField = "LengthID";
                rblLength.DataBind();

                rblWidth.DataSource     = widthList;
                rblWidth.DataTextField  = "Description";
                rblWidth.DataValueField = "WidthID";
                rblWidth.DataBind();
                divBraidDetails.Visible = true;
            }
            else if (drpType.SelectedValue == "A")
            {
                divBraidDetails.Visible = false;
            }
            else if (drpType.SelectedValue == "N")
            {
                divBraidDetails.Visible = false;
            }
        }