In this episode, Noah and I explain how to use Web Deployment Projects to deploy your web application. This screencast will get you up and running, but in a future screencast, we discuss more advanced topics like excluding files, swapping out the right config files per environment, and alternate solution configurations. This screencast (and the [...]
In this screencast, Noah and I show you how to quickly get started with the ASP.NET Membership Provider. We’ll take you through basic features and setup and walk you through membership table creation with the ASP.NET SQL Server Wizard. I’ve written about the ASP.NET Membership Provider and setup before. If you missed the post, this [...]
I wrote about implementing a custom profile provider inside of your ASP.NET MVC application yesterday. If you haven’t read the article, don’t sweat it. Most of the stuff I write is rubbish anyway. Since you have joined me today, though, I might as well offer up a little tip: you can run into trouble, like [...]
Continue reading about Custom Profile Provider with Web Deployment Project
It’s been a long while since I last used the ASP.NET Profile provider. It’s a shame, too, because it just works with very little development effort: Membership tables installed? Check. Profile enabled in web.config? Check. SqlProfileProvider connection string set? Check. Profile properties defined in said web.config file? Check. Write code to set value, read value, [...]
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 [...]
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 [...]
Continue reading about .NET MailMessage, LinkedResources, AlternateViews and Exceptions