Steps to Do:
1.Add token column(any name),received column to your database table which has id,pwd,....
AspCode(In .Cs file)
1.Generate token by using "random" keyword and send token,id(which is already have) as a query string in url to mail account like
2.When user clicks on link(which is present in gmail or any other mail.).he is redirected to home page.
3.In home page you need to get the values from token and id and write the logic to update the column "received" to yes.(or you can use any logic).
1.If you want secure for token you can use encrypt and decrypt logic for token
2.The answer to this question is not a logic.its a task.So for time sake i just give the logic.For more you need to study various articles then you will get a clear idea.
refer below links .you will get an idea.
mail confirmation in asp.net