Click to See Complete Forum and Search --> : How to Fill Drop Down List Dynamically
factian
July 9th, 2008, 01:17 AM
Hi to all!
I am new to ASP.NET. I want to Fill Drop down list dynamically from code. Is there anybody to help me.
Thanks in advance.
Alsvha
July 9th, 2008, 02:40 AM
Look at the .Items property on a drop down list. You can .Add new List Items via that.
factian
July 9th, 2008, 03:46 AM
Thanks a lot for ur kind reply.
I want to know loop structure to fill the drop down list from Database table. kindly give some code sample pls
PeejAvery
July 9th, 2008, 02:50 PM
Are you unable to type "google.com" into your browser and do some searching? This search (http://www.google.com/search?source=ig&hl=en&rlz=&q=asp.net+drop+down+database&btnG=Google+Search) revealed this helpful page (http://www.aspfree.com/c/a/ASP.NET/ASPNET-Dropdown-List-Control-Eight-Ways-to-Bind-Data/) and this one too (http://********freesofts.com/script/501/7767/Creating_Databound_DropDown_Lists_in_ASPNET.html).
Alsvha
July 9th, 2008, 03:46 PM
<snip>kindly give some code sample pls
Not before you do some work. I'll point and I'll explain, but I'll not do your (home)work for you.
factian
July 9th, 2008, 11:53 PM
Not before you do some work. I'll point and I'll explain, but I'll not do your (home)work for you.
Dear I am not asking you to do home work for me. I need a little help not to do whole work of mine.
Anyway thanks a lot for your comments.
factian
July 9th, 2008, 11:55 PM
Are you unable to type "google.com" into your browser and do some searching? This search (http://www.google.com/search?source=ig&hl=en&rlz=&q=asp.net+drop+down+database&btnG=Google+Search) revealed this helpful page (http://www.aspfree.com/c/a/ASP.NET/ASPNET-Dropdown-List-Control-Eight-Ways-to-Bind-Data/) and this one too (http://********freesofts.com/script/501/7767/Creating_Databound_DropDown_Lists_in_ASPNET.html).
I am very thankfull to you.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.