Tag Archives: ASP

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