Posts

Showing posts with the label DropDownList

How to find text in dropdownlist in asp.net

Finding item in dropdownlist from a string. ddlStudent.Items.Contains( new  ListItem("Dawood"))

bind dropdownlist in repeater asp.net

Easy you set drop down list datasourse in repeater 1- Create ItemDataBound event 2- Check ListItemType one by one 3- Find dropdown which you take on repeater 4- DataSource protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)         {             try             {                 if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)                 {                     DropDownList ddl = (DropDownList)e.Item.FindControl("ddlAbc");                     DataTable dt = GetDataSource();                     ddl.DataSource = lstReferencePoint;                ...