One may quickly build and deploy an ASP.NET web application via the Publish option in Visual Studio. This option works great for most simple deployment scenarios but it won’t always cut it. Let’s say you need to automate your deployments. Or you have environment-specific configuration settings. Or you need to execute pre/post build operations when [...]
Continue reading about Deploy ASP.NET Web Applications with Web Deployment Projects
Some of the ASP.NET 4 improvements around SEO are neat. The ASP.NET 4 Page.MetaKeywords and Page.MetaDescription properties, for example, are a welcomed change. There’s nothing earth-shattering going on here – you can now set these meta tags via your Master page’s code behind rather than relying on updates to your markup alone. It isn’t difficult [...]
Continue reading about ASP.NET Meta Keywords and Description
A new ASP.NET MVC project includes preconfigured Membership, Profile and RoleManager providers right out of the box. Try it yourself – create a ASP.NET MVC application, crack open the web.config file and have a look.
First, you’ll find the ApplicationServices database connection:
<connectionStrings>
<add name="ApplicationServices"
connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true"
providerName="System.Data.SqlClient"/>
</connectionStrings>
Notice the connection string [...]
Continue reading about Getting Started with ASP.NET Membership, Profile and RoleManager
It doesn’t take much to hack together email functionality using the .NET framework. In most cases you can new-up a MailMessage reference, assign sender and recipient addresses, provide a subject and a message body, configure your SMTP settings and then send. Done and done.
But let’s say you need to provide both plain text and HTML [...]
Continue reading about .NET MailMessage, LinkedResources, AlternateViews and Exceptions
It wasn’t until recently (December) that I started giving IIS7 any attention. I suspect its because I don’t have to do much inside of IIS when I’m developing .NET applications on my Vista Machine and I haven’t deployed to many Windows Server 2008 machines yet. Though there’s a impressive amount of information on the IIS [...]
I’ve been spending lots of time getting my head around Aspect-Oriented Programming (AOP). At its foundation, AOP separates crosscutting concerns (concerns which are not localizable and cannot be implemented successfully using pure imperative or object-oriented programming) into loosely coupled, modularized units called aspects and injects them into the otherwise one-dimensional base program. Without AOP, we [...]
jTemplates is a jQuery plugin and template engine for Javascript. If you keep up with Dave Ward and/or Rick Strahl you may already be familiar with jTemplates as they have both highlighted the plugin on their respective bolgs. About 1.5 months ago, however, I got into the action and started using jTemplates in conjunction with [...]
Continue reading about jTemplates with jQuery, AJAX and Json
As javascript libraries, particularly jQuery, increase in popularity so do web techniques using AJAX and JSON.
Have you ever seen this code? It is front and back of an ASPX file with the single responsibility to return JSON data per an AJAX request.
GetDataPage.aspx
<%@ Page Language=”C#” AutoEventWireup=”true”
CodeFile=”GetDataPage.aspx.cs” Inherits=”GetDataPage” %>
<%–
This [...]