Post a ASP.NET web page from desktop application

Last post 07-04-2009 3:47 AM by TATWORTH. 2 replies.

Sort Posts:

  • Post a ASP.NET web page from desktop application

    07-03-2009, 3:05 AM
    • Participant
      925 point Participant
    • sreejith77
    • Member since 12-18-2006, 9:09 AM
    • Trivandrum, Kerala, India
    • Posts 250

    Hi,

    We have an ASP.NET web page that receives a set of user details and when user clicks the 'Save' button, page will be posted back and data will be saved into DB. How can we initiate same process from a .NET desktop application. We need to post the same ASP.NET page with a new set of user details from our windows based application.

    regards

    Sreejith

    Sreejith
    http://tips4dotnet.blogspot.com/
  • Re: Post a ASP.NET web page from desktop application

    07-03-2009, 3:58 AM
    • Member
      24 point Member
    • cshark
    • Member since 07-02-2009, 4:50 PM
    • Rochester
    • Posts 13

    This can be done using the WebBrowser control in the .net winforms.
    WebBrowser browser = new WebBrowser();
        browser.Url = new Uri("http://localhost/default.aspx");

    This can be done using the WebBrowser control in the .net winforms.

    WebBrowser objBrowser = new WebBrowser();

     objBrowser .Url = new Uri("http://localhost/default.aspx");

  • Re: Post a ASP.NET web page from desktop application

    07-04-2009, 3:47 AM
    • All-Star
      61,128 point All-Star
    • TATWORTH
    • Member since 02-04-2003, 1:34 PM
    • England
    • Posts 11,990
    • TrustedFriends-MVPs

    >How can we initiate same process from a .NET desktop application. We need to post the same ASP.NET page with a new set of user details from our windows based application.

    It would be better if you added a web service to access such programmatic input.

    Don't forget to click "Mark as Answer" on the post that helped you.
    This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
Page 1 of 1 (3 items)