Add razor page
Add razor page
Let us create a folder called Pages
at the root of the project and add a razor file inside it



Replace content
Let us replace the content of the Index page as shown below
Run the app
If we now run the app we still see the old message which is actually a static string and not the page we were expecting:

We don't see the new output from the razor file because we did not configure our application to use razor pages, we will see how to do it next!
Last updated