.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
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.
Best regards,
Yijing Sun
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
26 Points
69 Posts
How do I get the current view or controller to run when I click the start in IIS (play button) in...
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.
Contributor
3730 Points
1412 Posts
Re: How do I get the current view or controller to run when I click the start in IIS (play button...
Apr 26, 2020 07:13 AM|yij sun|LINK
Hi id3ma,
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:
More details,you could refer to below article:
https://forums.asp.net/t/1882785.aspx?IIS+not+dispalaying+default+page
Best regards,
Yijing Sun
Member
26 Points
69 Posts
Re: How do I get the current view or controller to run when I click the start in IIS (play button...
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.
Contributor
3730 Points
1412 Posts
Re: How do I get the current view or controller to run when I click the start in IIS (play button...
Apr 30, 2020 03:52 AM|yij sun|LINK
Hi id3ma,
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.
Best regards,
Yijing Sun