User-219423983 posted
Hi LucasSaraiva,
I think you could achieve your goals. Maybe you have read the following article. As it shows, you could have create a GUID to be the “ActivationCode” and add it to the URL of “register.aspx” as a parameter when the “hashregister.aspx”
is loaded.
Then, when the page “register.aspx” is first loaded, you could get the GUID and then delete the “ActivationCode” from the database.
The following code is about “hashregister.aspx” and you could have a look.
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string activationCode = Guid.NewGuid().ToString();
//save the activationCode to the database
HyperLink1.NavigateUrl = string.Format("register.aspx?ActivationCode={0}", activationCode);
}
}
http://www.aspsnippets.com/Articles/Send-user-Confirmation-email-after-Registration-with-Activation-Link-in-ASPNet.aspx
Best Regards,
Weibo Zhang