简体   繁体   中英

Launch asp.net web application in browser when user logon into system

I have created one web application in asp.net and it's purpose is ask basic questions to company employee when they login into their system.

Basic requirement is like they don't want to open browser and enter website URL to attend this questions. We have to force them to attend this questions before do any regular work and when they login into their system.

Is it possible to achieve this or is there any other way if it's possible into windows base application?

I see a couple of options:

1) You can create a simpest Node Web Kit app. To create the simplest one - just create file package.json

{
  "name": "your-app-name",
  "main": "http://your-asp-net-app.com/"
}

then zip it and rename zip archive to app.nw.

To launch it you should call "nw app.nw". Or you can create a single executible by performing

copy /b nw.exe+app.nw app.exe

See details here

2) Or create a desktop WinForms app using CefSharp

First option is a cross platform solution. And you can rely on browser capabilities - it will always be chromium.

As drf mentioned, you can use Active Directory GPO to configure launching your app at logon

If you really need to launch only this app until user finish his/her work with your app, you can use registry key "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon Shell" to specify your app path instead of explorer.exe. When the work is done, you can launch explorer.exe from your app programmatically. See this question for more info

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM