Beispiel #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         reqValSubcategory.ErrorMessage = Resources.MessageResource.errSubcategoryname.ToString();
         reqValDrpCatg.ErrorMessage     = Resources.MessageResource.errValdrpcategory.ToString();
         BindDrpCategory();
         BindDropSubCategory();
         col = objUser.Get_SDETechAdmin();
         drpUserList.DataTextField  = "username";
         drpUserList.DataValueField = "userid";
         drpUserList.DataSource     = col;
         drpUserList.DataBind();
         ListItem item = new ListItem();
         item.Text  = "--------------Select--------------";
         item.Value = "0";
         drpUserList.Items.Add(item);
         drpUserList.SelectedValue = "0";
     }
 }