dropdownlist bind

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
[background=transparent]
just want to know which one is faster :[/background]
[background=transparent]
provide a datareader to dropdownlist as datasource or looping through datareader and add items to the list ?[/background]
[background=transparent]
suppose we have DropDownList name = ddlx[/background]
[background=transparent]
ddlx.datasource = datareader or[/background]
[background=transparent]
while(reader.read())[/background]
[background=transparent]
{[/background]
[background=transparent]
ddlx.items.add(new itemlist("","");[/background]
[background=transparent]
{[/background]
[background=transparent]
which one is faster and why please ?[/background]


View the full article
 
Back
Top