Results 1 to 4 of 4

Thread: Link VB form to an HTML page

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2018
    Posts
    4

    Cool Link VB form to an HTML page

    Working on a project. I completed most of the project but I am unable to figure out how to link the form to show on my HTML page.

    We need a button, "View Report" that will take the data from the form and will post it to a table on the webpage.

    I'll add screen shots, let me know what is need to do. I have no idea.... THANKS

    also, dont judge me on my webpage.. I am going to edit it after i figure out how to do the hard part


    Name:  grade 1.PNG
Views: 1477
Size:  29.8 KB
    Name:  html.jpg
Views: 1256
Size:  18.3 KB
    Name:  html1.jpg
Views: 1323
Size:  20.4 KB

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Link VB form to an HTML page

    I think that your terminology is a bit off and that makes it unclear what you're actually trying to achieve. It seems that you want one of two things:

    1. To display a web page in your application and populate some fields in it, then save that data using the web page.
    2. Save some data from your application to a web site, then load a page containing that saved data.

    They are two quite different things, so it's important that we're clear which you are trying to do.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2018
    Posts
    4

    Re: Link VB form to an HTML page

    Thanks for responding. I am trying to do the second one which is save data from my application to a website the load a web page containing the saved data

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Link VB form to an HTML page

    In that case, you can use the HttpClient class in .NET 4.5 or later and the WebClient class in all versions to post data to a web site. It's not something I'm in the habit of doing so I don't have code handy but I just searched the web for "vb.net post webclient" and there were relevant results returned. Once that's done, you can load the page however you would any other, which may be in a browser or perhaps by calling Navigate on a WebBrowser control on your form.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Tags for this Thread

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