Create HTML form dynamically using VB


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Create HTML form dynamically using VB

  1. #1
    Sarah Guest

    Create HTML form dynamically using VB


    Hi all,
    I'm working on a project that has the following requirements.
    A VB application allows the user to select certain fields (name, address,
    pin etc.) through the use of checkboxes/multiple select list boxes. When
    the submit button is clicked, the checked items in the VB interface have
    to be displayed in the HTML page.
    For example if I have 'Name' as a checked item in the VB application, I need
    to display on the HTML page a label and a textbox for 'Name'.
    In short, the HTML page is created dynamically depending on what is selected
    in my VB form. Once the HTML page is displayed, VB does not need to control
    its working.
    What is the best and easiest way to do this in VB 6.0? I am not using .NET
    -Sarah

  2. #2
    Chris Hylton Guest

    Re: Create HTML form dynamically using VB


    The easiest way is probably just something simple like create a file w/ a
    .htm extension and open it using the Open command in VB and just write the
    HTML straight out to the file, then close it...and shell it out to the browser
    using something like the ShellExecute API call...you'll only need the shell
    part if you intend on having VB open the HTML document w/ the browser.

    If that doesn't make sense...check out the Open command for file editing
    and search for ShellExecute on the MS site, that API is there and can be
    cut-n-pasted right into your app...

    Chris

    "Sarah" <sarahmapg@hotmail.com> wrote:
    >
    >Hi all,
    >I'm working on a project that has the following requirements.
    >A VB application allows the user to select certain fields (name, address,
    >pin etc.) through the use of checkboxes/multiple select list boxes. When
    >the submit button is clicked, the checked items in the VB interface have
    >to be displayed in the HTML page.
    >For example if I have 'Name' as a checked item in the VB application, I

    need
    >to display on the HTML page a label and a textbox for 'Name'.
    >In short, the HTML page is created dynamically depending on what is selected
    >in my VB form. Once the HTML page is displayed, VB does not need to control
    >its working.
    >What is the best and easiest way to do this in VB 6.0? I am not using .NET
    >-Sarah



  3. #3
    Craig Brown Guest

    Re: Create HTML form dynamically using VB


    Sarah,

    Has your question been answered? Or were you looking for something different?

    Craig Brown


    "Chris Hylton" <cchylton@hotmail.com> wrote:
    >
    >The easiest way is probably just something simple like create a file w/

    a
    >.htm extension and open it using the Open command in VB and just write the
    >HTML straight out to the file, then close it...and shell it out to the browser
    >using something like the ShellExecute API call...you'll only need the shell
    >part if you intend on having VB open the HTML document w/ the browser.
    >
    >If that doesn't make sense...check out the Open command for file editing
    >and search for ShellExecute on the MS site, that API is there and can be
    >cut-n-pasted right into your app...
    >
    >Chris
    >
    >"Sarah" <sarahmapg@hotmail.com> wrote:
    >>
    >>Hi all,
    >>I'm working on a project that has the following requirements.
    >>A VB application allows the user to select certain fields (name, address,
    >>pin etc.) through the use of checkboxes/multiple select list boxes. When
    >>the submit button is clicked, the checked items in the VB interface have
    >>to be displayed in the HTML page.
    >>For example if I have 'Name' as a checked item in the VB application, I

    >need
    >>to display on the HTML page a label and a textbox for 'Name'.
    >>In short, the HTML page is created dynamically depending on what is selected
    >>in my VB form. Once the HTML page is displayed, VB does not need to control
    >>its working.
    >>What is the best and easiest way to do this in VB 6.0? I am not using .NET
    >>-Sarah

    >



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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center