Question

I'm currently in the process of building a forum like site where people can register and login to their own page to post content.

I have built the system to send off a verification link to the registrants email along with a link that contains their user user id which is their email on the URL

http://localhost:50490/ForumTest/ActivateProfile.aspx?Username=jason90@yahoo.co.uk

I need to know how I can get my SQL database table [UserTable] field UserVerified to update to "1", it is currently set to "0" by default.

I just need to know how to write the code behind the ActivateProfile.aspx page to update this data field when the Users hit the Activate button on this page.

Would be awesome if someone can help me with this

I have been trying to find solutions everywhere but its all based on examples that were made using the CREATE USER WIZARD on the Microsoft Visual Studio environment. all my forms and fields have been made manually therefore those example were of no use for me :(.

Hope someone can help me

Thanks a lot in advance

:)

Was it helpful?

Solution

Do you have an existing Database connection? You need to execute some SQL similar to this:

UPDATE UserTable SET UserVerified=1 WHERE Username='jason90@yahoo.co.uk'
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top