Last post Apr 30, 2020 03:52 AM by yij sun
Apr 24, 2020 06:06 PM|id3ma|LINK
I want my app to run the razor view I'm currently working on when I run the app instead of it defaulting to the home/index page.
Apr 26, 2020 07:13 AM|yij sun|LINK
Accroding to your description,as far as I think,there are two ways:
1.set default page in iis:
Administrative Tools-> IIS Manager -> You Server Name -> Your site name -> Under HTTP features -> Default document -> Add MyDefaultPage.aspx -->Enable
2.write follow in web.config:
<add value="Logon/LogonScreen.aspx" />
More details,you could refer to below article:
Apr 29, 2020 03:35 PM|id3ma|LINK
Thanks this is for IIS. I'm looking for an answer on how to test the current View in VS 2019.
Apr 30, 2020 03:52 AM|yij sun|LINK
Accroding to your description,as far as I think,you could right click your project and set as startup project and then you could select the properties-->web-->current page
If you have setted a view as start page,you could cancel.You need to select the properties -->web -->clear the specific page items and select current page.