Visual Studio and CMS? - css

I have to create an MVC asp.net website using MS visual studio for my final year of study in Information Systems. I want to know if it's possible to sort of "connect" the code to an HTML drag-and-drop CMS, instead of using visual studio's html/css editor and the auto-generated files in the mvc project.
Basically, I want to write the controller and model code in visual studio and the view code (HTML) in a nice CMS such as wordpress or drupal (not necessarily those two).
Please advise!

Consider Orchard CMS - it is ASP.net MVC based. It is supported on Azure. Here's an azure+orchard tutorial to get you up and running. Umbraco v6 released in January 2013 also supports MVC.

Related

Visual studio 2013 web form and design view equivalent in Visual studio 2019?

I'm following an ASP.NET course series where the instructor uses Visual Studio 2013, and I can't figure out what the equivalent is in 2019 for the settings he uses. He creates a new ASP.NET Web Application, then picks the Empty template, but there are additional options that I can't see when creating mine, specifically the web forms box.
Web form (https://i.imgur.com/63lAKSg.png)
I tried to do the same, but when he continues he is able to "Add a web form" to the project. He creates a web form with the .aspx extension.
Web form (https://i.imgur.com/rSgtqlT.png)
He is also able to enter a design view mode, which I can't see. I can right click html or htmlcs files and open them with a web forms editor option, but at that point all the HTML items in my toolbox disappear(pointer, button, textarea, input, etc.). I tried to pick the ASP.NET Web application template as well but it didn't make a difference with my issue.
Design mode (https://i.imgur.com/q5uL2UI.png)
Or would it be better to just use VS 2013 for this course?
ASP.NET Web Forms is an old technology:
Web Forms was included in the original .NET Framework 1.0 release in 2002, as the first programming model available in ASP.NET. Unlike newer ASP.NET components, Web Forms is not supported by ASP.NET Core.
If you navigate to the ASP.Net Web Forms page, Microsoft tells you this:
Consider Razor Pages instead of Web Forms
Razor Pages is a more modern alternative for building web apps using HTML, CSS, JavaScript, and C#. Razor Pages can run on .NET Core - a high performance, cross-platform and open-source version of .NET that runs on Linux, macOS, and Windows.
If you must learn ASP.NET Web Forms, it is supported in Visual Studio 2019:
OP is requesting comparison between the "New Project" gui wizard steps, for Visual Studio 2019 (vs-2019) to pre-2019 versions. The request also has a student learning context.
Please find an example doing that for the task of creating a "Web Forms with Master" application with vs-2019 mapped to vs-2015, using:
Murach's ASP.NET 4.6 with C# 2015,
Microsoft Visual Studio Community 2019,
Visual Studio 16.4.3
The vs-2015 version has an option for the user to create a web forms with master application. The button "Web Form with Master" is routinely illustrated in books and online tutorials, walking learners through step-by-step to reach an intended result. That button is gone, the feature is not gone.
The web form with master option in vs-2019 is called "Web API" and can be enabled on the "Create New Web Application" wizard/gui screen.
"Web Web Form with Master Page" button has become in vs-2019.
Mapping Steps
See illustrations to create a Master Page ASP.NET application in vs-2019. How to enable Web API and Site.Master
With vs-2019 running, a user activates the new project gui/wizard with the following toolbar selections: File -> New -> Project...
Wizard/GUI vs-2019
Create a New Project in ~ image 3 missing ~ next ~ ASP.NET Web Application (DOT.NET) ~ ~ next ~ Configure your new project ~~ (i.e., name it, and set file system path) ~ ~ next ~ Create a new ASP.NET Web Application ~ Web Forms ~~ Add folders & core references ~~ [ Checkbox ] Web API
The resulting
The resulting
add dots to see missing image three: i stack imgur com/FpKBb png

Learning AngualrJS using Visual studio

I am learning AngularJS, using Visual Studio. I am not web developer, so I am not sure which template to use, there are multiple templates and its add a lot more things which add to un necessary complexity
Can you guide on which template to use learning AngularJS?
File > New Website > Visual Basic | Visual C# > ASP.NET Empty Web Site

ASP.NET Add Razor page in Web Application not Web Site, NO MVC

I just found a strange thing in Visual Studio 2010.
I can add a Razor page into a Web Site project, but I cannot do it in a Web Application project.
I do know I can create a ASP.NET MVC(1-4) project which allows me to add a Razor page into it.
After I checked the differences between Web Site(WS) project and Web Application(WA) project, it seems to me that WA is to trend to be in most cases and has more features than WS.
So my question is:
Visual Studio 2010 allows us to add a Razor page into a WS project(you can find it when adding a new page in the list of templates), but why it does not provide the Razor page in the template in the WA project?
I'm curious about it. Waiting for your answers :)
Cheers
I had the same problem when creating a new, Empty web application. I wanted to use MVC. Despite adding the references required, it still won't let me create files by right clicking on a folder.
However, if you have SP1 installed on Visual Studio 2010, you can:
Right Click > Add > New from Template> Razor MVC View
Hope this helps.

Asp.Net Web Framework for Asp.net 2.0 and Visual Studio 2005

I am working on re-factoring of an existing Asp.Net 2.0 web site. I am looking for a framework/pattern to modularise the application. As there is no WCSF for Visual Studio 2005 I can't use it and I also can not upgrade it to Visual Studio 2008 for reasons beyond my control.
I can use Mono-Rail but I would loose the existing controls functionality. Does any one know a good Framework/Pattern that can be used consistently across the modules on Asp.Net 2.0/Visual Studio 2005.
I came to know about Spring.Net Web Framework which supports Asp.Net 2.0 and Visual Studio 2005. It has few good features like Two way Model Binding, Navigation support, Validation and DI Container. Only problem with Spring.Net is huge Xml files to define everything

VS2008: Make a non-LINQed website LINQed

I've recently started playing around with ASP.NET and I was just about to connect to a database using LINQ, when I realised that you have to change a bunch of stuff in the project first if you created a normal web site project in Visual Studio 2008.
All the information about LINQed projects in VS2008 that I have found start directly from scratch with a completely new web site. What modifications do I have to make to my project to be able to make use of LINQ?
I think that your question can be answered by viewing this post on stackoverflow.com.
In short your application will need to have access to System.Linq which comes from the .NET 3.5 framework. If your application is currently using .NET 2.0, it is possible to hack a setup with the CTP packages for Linq prior to it being released with Visual Studio 2008, but you might find it hard when you push your application out to production to a hosting company because you will have to install .dll's into areas you generally don't have access too.
Good luck on your conversion to Linq.

Resources