Lately, I've been doing a lot of work with the ASP.NET MVC framework. One of the greatest attributes of MVC over Web Forms is its extensibility. Authorization is important to any application and being able to customize it to meet your project's needs is equally important. In the ASP.NET MVC framework, developers can use attributes to control things like validation and authorization. To have custom authorization in your MVC project, start off by inheriting from the AuthorizeAttribute ...
Updated May 9th, 2011 at 11:28 AM by jmurrayhead
If you're like me, you don't like rewriting/copy & pasting validation code for controls that we use all the time. This enticed me to build a collection of these common controls that I can reuse in every application and save myself from a lot of typing. Thus the birth of JmhCommonControl. Currently, the JmhCommonControl assembly consists of 6 controls: NameEntry, PhoneNumber, SocialSecurity, Url, ZipCode, and CustomTextBox. Continue reading for information on each of these. ...
Like my other .NET Development blogs, I preach about building applications with a layered, Object-Oriented architecture. Now I'm going to discuss how to create a base class that all of your business objects can inherit. This base class will contain methods and properties that, when inherited, will be available to any class that inherits it. In Visual Studio, we will start by creating a new Class Library (*.vb or *.cs) in the App_Code directory. We will name this file BizObject.vb ...
Updated May 9th, 2011 at 11:30 AM by jmurrayhead
Business Objects are objects in an object-oriented computer application or program that represent the entities within a business domain. A business object will often encapsulate all of the data and business logic associated with the entity in which it represents. Furthermore, business objects provide flexibility and adaptability, scalability and reusability. Let's take a look at how a business object may look within an ASP.NET web application. Let's say you want to design an application ...
Updated May 9th, 2011 at 11:32 AM by jmurrayhead
Over the past year and a half, I've been doing what I can to convert Classic ASP scripters over to ASP.NET programmers. Why did I call them "scripters"? Because Classic ASP uses scripting languages such as server-side VBScript and server-side JScript, whereas ASP.NET uses programming languages such as VB.Net, C# and J#. These programming languages are full-blown object-oriented languages. After I was able to successfully convert these former Classic ASP scripters ...
Updated May 9th, 2011 at 11:36 AM by jmurrayhead