www.webdeveloper.com
Results 1 to 6 of 6

Thread: Dynamic form element

  1. #1
    Join Date
    Feb 2004
    Posts
    5

    Dynamic form element

    Hi,
    I am reading xml document in VB .NET and I want to create some radio buttons from the result of XML text and I have no clue how can I create them at run time. Can any body help me in this regard.

    Thanks in advance.

    Ahad

  2. #2
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222
    What are you changeing about the radio buttons? Also why xml? You can just write out different values dynamically and stuff like that if you want at run time into an html form then use a form action to pass the values right back to the server when the user fills out the form.

  3. #3
    Join Date
    Feb 2004
    Posts
    5
    I am sorry if I couldn't be able to explain my question. My problem is that I just want to create radio button at run time and I don't know the code to do this. So the buttons shouldn't be hardcoded on the form before but I want to do this through code, so that whatever number of radio buttons I want to create I can and this can be vary next time. I hope this will make things more clear.

    Ahad

  4. #4
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222
    Well you have to write out an html form.
    <input type="radio" name="name" value="value" >
    Then just get the values when the user submits the form. You can't use the asp.net elements for this.

  5. #5
    Join Date
    Feb 2004
    Posts
    5

    Unhappy

    uhmmmmmmm! I don't know what you are talking about. First I don't have any html thing. Its a Visual Basic .Net and I have en empty window form and what I want to do is to put radio button dynamicly.

    Ahad

  6. #6
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222
    woops... I thought you were talking about vb.net to create asp.net web pages. This forum is geared towards asp.net (which should really be in the description), and the use of the .net studio for server applications. I do not use vb.net for executable application programming so I can't really help you there.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles