Hi guys
Hope your all well?
I'm building a website in visual studio, each page has two files to it a .cshtml and a
Also at the start of a cshtml file I see this:
@page
@model IndexModel
@{
ViewData["Title"] = "Home";
}
What does the @ symbol indicate, I feel like I should know this :-/
cheers guys
Demondan
Hope your all well?
I'm building a website in visual studio, each page has two files to it a .cshtml and a
.cshtml
.cs where the .cs is clearly c# and .cshtml is html. I cant seem to find an answer as to what each one is generally used for? The beginner tutorials often have the .cs doing pointless functions (other than to demonstrate how the two can work together) such as printing the local path to the web page.Also at the start of a cshtml file I see this:
@page
@model IndexModel
@{
ViewData["Title"] = "Home";
}
What does the @ symbol indicate, I feel like I should know this :-/
cheers guys
Demondan