Help creating controls

Discussion in 'ASP General' started by Dennis, Apr 12, 2004.

  1. Dennis

    Dennis Guest

    I need a little direction on a project I’m working on. The project is a .NET ASP web application. The application will present the end user with a survey. This survey is dynamic based on several rules. Since this survey is dynamic I have run into a problem. I’m trying to create Labels, TextBoxes, and RadioButtonList at runtime. The way that I understand to do this is to declare the control and use the Add method
    Dim txt as New TextBo

    Me.Controls.Add(txt

    But I keep getting errors with above code stating the new control must be placed inside a form tag with runat=server. I’m not sure where to go from here. If anyone has any advice it would be great. Thanks
     
    Dennis, Apr 12, 2004
    #1
    1. Advertising

  2. Dennis

    Evertjan. Guest

    =?Utf-8?B?RGVubmlz?= wrote on 12 apr 2004 in
    microsoft.public.inetserver.asp.general:
    > The project is a .NET ASP web application.


    This is a classical ASP NG.

    Please see a dot.net NG.


    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)
     
    Evertjan., Apr 12, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. msnews.microsoft.com

    Please Help - New in Creating WEB CONTROLS

    msnews.microsoft.com, Apr 27, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    341
    msnews.microsoft.com
    Apr 27, 2005
  2. Ravi Ambros Wallau
    Replies:
    0
    Views:
    4,118
    Ravi Ambros Wallau
    Jun 1, 2005
  3. Tarscher
    Replies:
    9
    Views:
    423
    Russell
    Feb 13, 2007
  4. Nathan Sokalski
    Replies:
    4
    Views:
    1,169
    Muhammad Naveed Yaseen
    Sep 5, 2007
  5. Replies:
    0
    Views:
    219
Loading...

Share This Page