|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
fill dropdown list thru datasetHi,
Any idea how to fill a dropdownlist thru dataset I done like this ddLst1.DataSource = myDataSet ddLst1.DataMember = myDataSet.Tables(0).Columns(1).Caption ddLst1.DataValueField = myDataSet.Tables(0).Columns(0).Caption but it is not working ; my dropdown list showing blanck please help me -- Regards K R Lal Already answered in another group. avoid cross-posting.
you need to call the DataBind() method. -Andrew Show quoteHide quote "K R Lal" <l***@yahoo.com> wrote in message news:ubrjKZ5XFHA.1152@tk2msftngp13.phx.gbl... > Hi, > > Any idea how to fill a dropdownlist thru dataset > > I done like this > ddLst1.DataSource = myDataSet > ddLst1.DataMember = myDataSet.Tables(0).Columns(1).Caption > > ddLst1.DataValueField = myDataSet.Tables(0).Columns(0).Caption > > but it is not working ; my dropdown list showing blanck > > please help me > -- > Regards > > K R Lal > >
Click checkbox's label - javascript onclick gets called twice
AutoPostBack Changing the document.title from a user control Validation not working in paging Using a Stylesheet in a User Control The nowrap Property of TD Tags Text control - password Referencing Datagrid Rows while Datagrid is Sorted TextBox.Text not getting the proper value Handling Events for Dynamically Created Controls |
|||||||||||||||||||||||