question

Su-8858 avatar image
0 Votes"
Su-8858 asked LanHuang-MSFT answered

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

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

dotnet-csharpwindows-formsdotnet-aspnet-mvcdotnet-aspnet-webpages
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Bruce-SqlWork avatar image
0 Votes"
Bruce-SqlWork answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LanHuang-MSFT avatar image
0 Votes"
LanHuang-MSFT answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.