Home All Groups Group Topic Archive Search About

How do you populate the Dropdown in IE Web Controls?

Author
18 Apr 2005 4:01 PM
Paul D. Fox
How can I populate the Dropdown list box in the IE Web Controls (server
side) ?

Author
19 Apr 2005 12:09 AM
Alvin Bruney [MVP - ASP.NET]
dropdownlist1.add("some","text") did you at least google for this before you
posted it?

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc
Show quoteHide quote
"Paul D. Fox" <pdfo***@rcn.com> wrote in message
news:%23G03V$CRFHA.2748@TK2MSFTNGP09.phx.gbl...
> How can I populate the Dropdown list box in the IE Web Controls (server
> side) ?
>
Author
19 Apr 2005 12:59 PM
Paul D. Fox
Yes I did.  Here is what I was trying to do which doesn't work using the Toolbar IE Web Control.  I guess I'll need to use a For/Next loop and add each one at a time.
ddlCTSPayPeriods.DataSource = dsPayPeriods.Tables(0).DefaultView
ddlCTSPayPeriods.DataTextField = "Pay_Periods"
ddlCTSPayPeriods.DataValueField = "Payroll_Period_ID"
ddlCTSPayPeriods.DataBind()

Dim FirstListItem As New ListItem
FirstListItem.Text = ""
FirstListItem.Value = ""

'Add a blank item at the first position.
ddlCTSPayPeriods.Items.Insert(0, FirstListItem)



Show quoteHide quote
"Alvin Bruney [MVP - ASP.NET]" <www.lulu.com/owc> wrote in message news:%23HBmEQHRFHA.2252@TK2MSFTNGP15.phx.gbl...
> dropdownlist1.add("some","text") did you at least google for this before you
> posted it?
>
> --
> Regards,
> Alvin Bruney - ASP.NET MVP
>
> [Shameless Author Plug]
> The Microsoft Office Web Components Black Book with .NET
> Now available @ www.lulu.com/owc
> "Paul D. Fox" <pdfo***@rcn.com> wrote in message
> news:%23G03V$CRFHA.2748@TK2MSFTNGP09.phx.gbl...
>> How can I populate the Dropdown list box in the IE Web Controls (server
>> side) ?
>>
>
>