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

Su 1 Reputation point
2022-04-28T10:38:49.793+00:00

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,828 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 questions
C#
C#
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.
10,247 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 56,021 Reputation points
    2022-04-28T15:09:19.353+00:00

    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 25,556 Reputation points Microsoft Vendor
    2022-04-29T07:15:57.307+00:00

    Hi @Su ,
    Maybe you can use the WebBrowser control. You can navigate the page to any webpage you want.
    https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.webbrowser?view=windowsdesktop-6.0
    Best regards,
    Lan Huang

    0 comments No comments