I had enabled the IIS features
and follow the tutorials to build my 1st ASP.NET page
but when I run the code, this problem occer
but it suppose to display current time instead of @DateTime.now()
did I missed out something?
I had enabled the IIS features
and follow the tutorials to build my 1st ASP.NET page
but when I run the code, this problem occer
but it suppose to display current time instead of @DateTime.now()
did I missed out something?
You have to rename the file to .cshtml
in order to let it be rendered as Web Page with the Razor engine. See Intro to ASP.NET Web Programming Razor Syntax : The Official Microsoft ASP.NET Site.