Approving Users and Assigning them to Roles After They Sign Up for an Account

Posted by: Imar Spaanjaars at Sunday, November 11, 2012 2:38:47 PM in: ASP.NET 4.5
Back in July I wrote an article that showed how you can require your users to confirm their e-mail addresses before they can access your site after signing up for a new account. In this article I describe a similar but slightly different technique where an administrator of the site can approve the account before the user gains access to the site.
Read on ...

Letting Users Manage Their Own Data using ASP.NET 4.5 Web Forms

Posted by: Imar Spaanjaars at Saturday, November 10, 2012 3:30:38 PM in: ASP.NET 4.5

A question that comes up often on forums such as p2p.wrox.com is how to let users manage their own data stored in a database. Probably the easiest way to accomplish this is to keep the user name in a separate column. Then when you query the data, you add a WHERE clause that retrieves only those rows that matches the user's name. Likewise, when inserting data, you store the user name along with that data.

But how do you capture the user's name? In the remainder of this article you see a two different ways to retrieve the user name of the currently logged in user.

Read on ...

Requiring Users to Confirm their E-mail Address after they Create an Account

Posted by: Imar Spaanjaars at Wednesday, July 18, 2012 12:04:02 PM in: ASP.NET 4.5

Over the past couple of weeks I received a number of e-mails from readers with more or less the same question: how do you require users to confirm their e-mail addresses before they are allowed to log in with an account they just created. Rather than answer them individually by e-mail, I decided to write this article to explain the principles.

Read on ...

Uploading Multiple Files at Once using ASP.NET 4.5

Posted by: Imar Spaanjaars at Sunday, April 08, 2012 9:14:56 AM in: ASP.NET 4.5
In versions of ASP.NET before 4.5 there was no direct way to enable a user to upload multiple files at once. The FileUpload control only supported a single file at the time. Common solutions to uploading multiple files were to use a server-side control such as those from Telerik or DevExpress or to use a client-side solution using a jQuery plugin for example. In the latter case, you would access Request.Files to get at the uploaded files, rather than retrieving them form a FileUpload control directly. Fortunately, in ASP.NET 4.5 uploading multiple files is now really easy.
Read on ... 12