Results 1 to 3 of 3

Thread: Send data from vb.Net App to ASP.Net page...

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2006
    Posts
    170

    Send data from vb.Net App to ASP.Net page...

    What I want to do is send data from my VB.Net application to a ASP.Net webpage so that this data send can we written to a database which would be handled by the ASP.Net. The reason why I want to do this is because one of my clients has asked for statistics on how many people are using my software, what projects, machine name etc etc. So what I propose to do is when a user logs into my application send this data to an ASP.Net webpage that is located on a central server and this ASP.Net page will then take the data sent an write it to a database.

    I have created the ASP.Net webpage called PostUsage.aspx and tested that this can be displayed, which is can. However I have a couple of questions that I need some help with:

    1. How can I send data from my VB.Net application to the PostUsage.aspx page?
    2. How can I then get/extract the data send to the PostUsage.aspx page, this is now at the PostUsage.aspx page side of things?

    Any help, links, examples would really be appreciated.

    Thanks in advance

    Simon

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

    Re: Send data from vb.Net App to ASP.Net page...

    The first thing to do is build the web page. It should display a form that you can enter data into and then submit a post back to the server. Once that's working, you can then use the HttpWebRequest class to perform the equivalent post from your VB application code.
    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
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    Re: Send data from vb.Net App to ASP.Net page...

    I think the OP wants the app to contact the website in the first instance. It also suggests that a website itself is not actually needed, just an online system. I would suggest creating a webservice (it can have a website attached to it), that your applications can post information to.

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