CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2003
    Location
    Pakistan
    Posts
    30

    Lightbulb How to Fill Drop Down List Dynamically

    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.
    Friends are Flowers in the Garden of Life

  2. #2
    Join Date
    Feb 2005
    Location
    Denmark
    Posts
    742

    Re: How to Fill Drop Down List Dynamically

    Look at the .Items property on a drop down list. You can .Add new List Items via that.

  3. #3
    Join Date
    Jun 2003
    Location
    Pakistan
    Posts
    30

    Lightbulb Re: How to Fill Drop Down List Dynamically

    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
    Friends are Flowers in the Garden of Life

  4. #4
    Join Date
    May 2002
    Posts
    10,943

    Re: How to Fill Drop Down List Dynamically

    Are you unable to type "google.com" into your browser and do some searching? This search revealed this helpful page and this one too.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  5. #5
    Join Date
    Feb 2005
    Location
    Denmark
    Posts
    742

    Re: How to Fill Drop Down List Dynamically

    Quote Originally Posted by factian
    <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.

  6. #6
    Join Date
    Jun 2003
    Location
    Pakistan
    Posts
    30

    Re: How to Fill Drop Down List Dynamically

    Quote Originally Posted by Alsvha
    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.
    Friends are Flowers in the Garden of Life

  7. #7
    Join Date
    Jun 2003
    Location
    Pakistan
    Posts
    30

    Re: How to Fill Drop Down List Dynamically

    Quote Originally Posted by PeejAvery
    Are you unable to type "google.com" into your browser and do some searching? This search revealed this helpful page and this one too.

    I am very thankfull to you.
    Friends are Flowers in the Garden of Life

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured