Creating webcontrols on the fly

Discussion in 'ASP .Net Web Controls' started by Fabiano, Apr 30, 2004.

  1. Fabiano

    Fabiano Guest


    I need to create an webpage that when user clicks on ADD button it's create
    a new line with dropdownlist, textboxes and on.
    with ASP and HTML i use DHTML to create another controls. Now with ASP.NET
    and C# how can i do this. May i use DHTML or can i do this on my codebehind?

    Tks in adv.

    Fabiano, Apr 30, 2004
    1. Advertisements

  2. codebehind will work
    dropdownlist d = new dropdownlist();

    Alvin Bruney [MVP], Apr 30, 2004
    1. Advertisements

  3. Fabiano, check out:

    Dynamic Controls in ASP.NET


    Working with Dynamically Created Controls

    Happy Programming!


    Scott Mitchell

    * When you think ASP, think!
    Scott Mitchell [MVP], May 1, 2004
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.