Hi Cirene,
I tried the following code in the Page_load event and it shows the text as
"New Text" in the Dropdownlist control.
Me.DropDownList1.DataSourceID = ""
Me.DropDownList1.Items.Clear()
Me.DropDownList1.Items.Add("New Text")
Regards,
Manish
www.ComponentOne.com
> In a certain condition I want to 'detach' a dropdownlist from it's
> datasource, clear it, and put in my own items via code.
[quoted text clipped - 20 lines]
>
> Thanks!
Cirene - 28 May 2008 18:03 GMT
Everything, including respone.write of the listbox item count and first
item, indicates that it's working.
But, on the browser screen the listbox APPEARS empty.
Is it because of how i'm clearing out the datasource stuff?
> Hi Cirene,
>
[quoted text clipped - 34 lines]
>>
>> Thanks!
Cirene - 29 May 2008 22:09 GMT
Any ideas on this?
> Everything, including respone.write of the listbox item count and first
> item, indicates that it's working.
[quoted text clipped - 42 lines]
>>>
>>> Thanks!