title: Sending email verification link to activate profile c#
body: <p>I'm currently building a website where people can register and they can have their own pages of content. I have created a custom login page not using the Create user wizard provided on the Microsoft Visual studio 2010. I have a SQL Database at the back end with </p>
  
  <blockquote>
    <p>tblUsers</p>
  </blockquote>
  
  <p>where users register will be saved. I have my email smtp settings configured and capable of sending emails using the registering persons email. I have tested this and it works. </p>
  
  <p><strong>The Problems</strong></p>
  
  <p>(1) I'm confused as to how I can generate the activation link to be attached to be sent with the email.</p>
  
  <p>(2) How can i program the code to update a field in the SQL table related to the user </p>
  
  <blockquote>
    <p>e.g: User verified = true</p>
  </blockquote>
  
  <p>when the user clicks the link sent through the email.</p>
  
  <p>(3) How can I block the user from being able to log in to the site without going through the verification process? (I am aware this can easily be done by changing few things on the Create User wizard, however I created my registration customarily therefore it runs on a register button click event) Therefore I can't seem to get my head around on how to do it. </p>
  
  <p>Please try to help me out if possible
  will greatly appreciate it.</p>