Here's a how to article by Dino Espisito and Andrea Saltarello on using the membership API in ASP.Net 2.0.