How to run ASP.Net Web Page after login in Window form app

Su 1 Reputation point

How to connect between ASP.Net MVC and Window form app to run ASP.Net Web Page after login from Window form app.

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,470 questions
A set of technologies in the .NET Framework for building web applications and XML web services.
1,481 questions
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
851 questions
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
8,190 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce ( 36,026 Reputation points

    Not sure what you mean by login by window form app.

    Window application can access a websites via HttpClient calling a webapi, or if html pages, using screen scraping technology. The other option is to host a webview control.

    Passing authentication to the website depends on how authentication is handled on the website. It may use bearer tokens, basic authentication, Kerberos or windows authentication. The other option is a login page that uses cookies. There may even be a central login server.

    0 comments No comments

  2. Lan Huang-MSFT 15,211 Reputation points Microsoft Vendor

    Hi @Su ,
    Maybe you can use the WebBrowser control. You can navigate the page to any webpage you want.
    Best regards,
    Lan Huang

    0 comments No comments