Category Archives: MVC

This category is about .NET MVC technologies.

Infinite Loop in Query String In MVC Project – Yellow Screen Of Death

When you set up your MVC project with Windows Authentication, e.g. … … You are likely to encounter the yellow screen of death with the following error message when running your solution on the internal Visual Studio IIS Express: HTTP … Read More »»»

Posted in MVC | Tagged , , , , , , , , | Leave a comment

How to Access Your Model Data in .NET MVC With Razor Engine for Beginners

It may be a little frustrating to start your first MVC application using Razor engine, especially if you have never used it before. Here are some interesting pointers for beginners: First, when you created your first solution, Visual Studio will … Read More »»»

Posted in MVC | Tagged , , , , , , , | Leave a comment

Microsoft .NET MVC Framework: How to Use Named Anchors (URL Hash Links) in Html.ActionLink

In HTML you can specify which part of the page you want to scroll to if a user clicks on a page using the hash symbol (#) like this: My Topic … Given how MVC works differently and the URL … Read More »»»

Posted in MVC | Tagged , , , , , , , , , , | Leave a comment

Microsoft .NET MVC: How to Use Hyphens in URLs for Conrollers and Actions

Once you created your MVC project, surely you can use underscores in in the names of your controllers and actions. Using hyphens in URLs, however, can make a difference for when your site is discovered by search engines. When you … Read More »»»

Posted in MVC | Tagged , , , , , , , , , , , | 2 Comments

Microsoft .NET MVC 4 Framework: How to Add a Custom Attribute to <%@ Page %> Directive of a Generic ViewPage Class

In Windows Forms .NET projects, adding a custom attribute to the <%@ Page %> directive is easy – all you have to do is simply create your base class that inherits from the System.Web.UI.Page class and add a public property … Read More »»»

Posted in MVC | Tagged , , , , , , , , , , , , , | Leave a comment

Tutorial: Microsoft .NET MVC Framework, Part 1: Building You First Page

While you may know what a Model-View-Controller architecture is (if you don’t I suggest you learn it first), you probably could use some tips and guidance on how to create your first page using Microsoft’s .NET MVC Framework if you … Read More »»»

Posted in MVC | Tagged , , , , , , , , , | 1 Comment