Groups | Blog | Home
all groups > asp.net webcontrols > january 2008 >

asp.net webcontrols : How to Fill DDLB with 3000+ data .??


MonikaJethi2@gmail.com
1/22/2008 10:17:02 AM
Hi,
I need to Fill DDLB(Drop DOwn List Box) with almost 3000+ data
(options).
Not sure how do I do that.
I thinl a drop-down Cannot work with this large number of employees.
Mine is a simple .asp page , I know it's possible in Dot Net but I
need to use simple ASP code .

Please Please help me ....

thanks a lot
M






















PJ on Development
1/23/2008 3:46:27 AM
Hi, Monika

Performance issues aside, the problem with filling a drop down list
box with such large number of options is taht the user will not be
able to navigate properly through this much of data. I'd consider a
filter of some sort to allow the user to narrow down the search items.

However, it's possible to do it in pure ASP, yes.

---- BEGIN ASP SCRIPTLET ----

<% Dim K %>
<select id=3D'ddlSample'>
<% For K =3D 1 to 3000 %>
<option value=3D'<%=3D K %>'>Option <%=3D K %></option>
<% Next %>
</select>

---- END ASP SCRIPTLET ----

Regards,

Paulo Santos
http://pjondevelopment.50webs.com

[quoted text, click to view]
AddThis Social Bookmark Button