This is quite straightforward. Generally the steps are as follows:
1. Create a registration form
2. Add a new user record when the form is submitted
3. Obtain the newly created ID of the user (http://www.mikesdotnetting.com/Article.aspx?ArticleID=54)
4. Generate a URL with the ID as a querystring value (eg http://www.mysite.com/VerifyUser.aspx?ID=12345 - where 12345 is the newly added ID)
5. Generate an email and send it to the submitted email address of the new user asking them to click the link to confirm their details
6. In VerifyUser.aspx, get the QueryString("ID") value, and update the record to show they have verified (UPDATE Users Set Verified = true WHERE UserID = @UserID)
Job done.
Depending on how secure you want the app to be, you might generate a random value, such as a GUID, and pass that into the link URL querystring as well. You can check the value of that too.