Posted on: 5/22/2015 11:30:46 AM | Views : 632

hi guys, this is my dropdownlist
<asp:DropDownList runat="server" ID="ddlAnketGrups" AutoPostBack="True" OnSelectedIndexChanged="GetSorular"/> to see drop items after postback i changed oninit event;
protected override void OnInit(EventArgs e) { base.OnInit(e); ddlAnketGrups.DataSource = KysSvc.GetAnketYayinlari();//anket gruplari comboya yüklendi. ddlAnketGrups.DataTextField = "Baslik"; ddlAnketGrups.DataValueField = "GrupKodu"; ddlAnketGrups.DataBind(); } but drop's selected index is being -1. and it is triggering selected_index_change. it cause problem for me. because   i press any button page posts back.How can solve this issue?

Go to the complete details ...