I built all my HTML code pages within the Umbraco CMS(doctypes with templates) which leaves me with the following issue, I cant see my views within the project solution in visual studio? There is nothing there? Or am I just being silly? please help me.
The reason I want to see the .cshtml files within VS is that I want to access the .cs file(code behind) of one of the views, I am required to write certain functionality in .net.
The csproj file references all the files that can be seen within the solution. If the file hasn't been added using Visual Studio it will be there but will be hidden (as it hasn't been added to the csproj file).
You can view hidden files by clicking the button below at the top of solution explorer:
You can then right click the greyed out (hidden) file and include in solution.
thank you so much for helping out so quickly! I came right, just a last question, so how would I access the .cs file of the .cshtml file if you understand what I'm saying? I want to view the code behind my views?
Umbraco 8 makes use of the MVC structure, meaning that there is no 'code behind' of your .cshtml file like in the old versions of WebForms. There are two things you could be referring to:
Thanks a million brother, I think i will just add my own controller files within VS in stead of using umbraco models builder. Because I have to build certain functionality with C# and not js, I will try that out but I’m sure it will work.
Thanks again
I cant see my view pages in visual studio?
Hey there,
I built all my HTML code pages within the Umbraco CMS(doctypes with templates) which leaves me with the following issue, I cant see my views within the project solution in visual studio? There is nothing there? Or am I just being silly? please help me.
The reason I want to see the .cshtml files within VS is that I want to access the .cs file(code behind) of one of the views, I am required to write certain functionality in .net.
Please assist me...
The csproj file references all the files that can be seen within the solution. If the file hasn't been added using Visual Studio it will be there but will be hidden (as it hasn't been added to the csproj file).
You can view hidden files by clicking the button below at the top of solution explorer:
You can then right click the greyed out (hidden) file and include in solution.
Hi
thank you so much for helping out so quickly! I came right, just a last question, so how would I access the .cs file of the .cshtml file if you understand what I'm saying? I want to view the code behind my views?
Hi Kyle,
Umbraco 8 makes use of the MVC structure, meaning that there is no 'code behind' of your .cshtml file like in the old versions of WebForms. There are two things you could be referring to:
Hope this helped!
Kind regards,
Corné
Hi Corné!
Thanks a million brother, I think i will just add my own controller files within VS in stead of using umbraco models builder. Because I have to build certain functionality with C# and not js, I will try that out but I’m sure it will work. Thanks again
I came right, just a last question, so how would I access the .cs file of the .cshtml file if you understand what I'm saying.
official website
is working on a reply...