Categorie: Web Development

I am using IIS 10.0 on Windows Server 2016. I found that option Deploy -> “Export Web Application” (when you right-click a web application in IIS) was missing. The reason for this is, that there have been some security related changes to web deploy. Before downloading and installing web deploy 3.6, you will have to…

Back to Content The angular.js file contains client side code. If you look at the Save() function you can see how you can call server-side code by using AJAX: $http({ method: ‘POST’, url: ‘api/Planning/PostPlanning/’, data: $scope.Planning }) We have defined an API controller named Planning with a method PostPlanning to which we pas the model…

Back to Content The next piece is the Angular.js script file – Planning.js – which is contained in the Scripts folder. Note that the file starts with a module declaration and then a controller declaration. The controller code starts with statements that show/hide the elements the elements that need to be displayed. I tried to…

Back to Content Next step is to look at Planning.cshtml. Note that this page doesn’t have a head and a body section. It’s just the html code to implement the body. At the top of the page is some Razor code. What’s important is the statement ViewBag.InitModule. Here you define the Angular Javascript module to…

Back to Content Now, let’s look at the MVC HomeController first. Nothing special. From layout.cshtml you reference the MVC controller. The MVC controller returns a View, which is a cshtml page with the same name. So action method Planning, as an example, is linked to Planning.cshtml. using System.Web.Mvc; namespace Nav4PS.Controllers { public class HomeController :…

Back to Contents First of all, realise that you have a shared _Layout.cshtml file that is the parent page for all contained webpages. Layout.cshmtl is the only page that has a <head> section, so that’s where I added the CSS file and some Javascript files to include: <head> <meta charset=”utf-8″ /> <title>@ViewBag.Title</title> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″ />…

Web development is not my core competence. Recently I had to build an ASP.Net website though and deploy it to Azure. I decided to use MVC and managed to get things up and running. In the following series of posts, I will explain the way to go: 1. Defining layout.cshtml. 2. The client-side MVC controller.…

https://www.microsoftvirtualacademy.com/en-US/training-courses/microsoft-azure-fundamentals-websites-8460 http://bit-do/choose-websites Compare hosting plans. Scenarios and recommendations. Feature comparison Azure Websites Choose Azure Websites 99% of the time (Scott Guthrie) Very little responsibility, but less control (relatively) Support most popular web development frameworks (also non-Microsoft). Frictionless deployment from VisualStudio or FTP. Deploy in seconds, host for free. Very l You get very much out…