drop down list

P

puja

hi all,

I have a requirement where I need to populate drop down list (which is not
run at server control. i.e it is an html control ) using server side code in
C#?

How can I add option values to drop down list in page load event.

Thanks
puja
 
N

Nathan Sokalski

Well, I suppose you could do it using some kind of code that adds a bunch of
LiteralControls, but why would you not want to make it into an ASP.NET
DropDownList if you need to add items to it during Page_Load? If you don't
want to use ASP.NET server controls (there are situations where they are not
appropriate, but yours does not sound like one of those situations), why are
you creating your page as an ASP.NET page? Perhaps if I knew your reason(s)
for not wanting to use server controls it would make it easier to help you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,781
Messages
2,569,615
Members
45,301
Latest member
BuyPureganics

Latest Threads

Top