Click here to Skip to main content
15,908,931 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Everyone,

I Developing a windows forms application using which an employee can register by providing his neccesary credentials.so whenever he provides his email address after the validation i need to send a verification code to his email address...and once he enters that verification address in the form he is registered...

NOTE:
i cannot store the verification code in database...i have to do this using properties by writing it in a global class...please help me out as i have no clue whatsoever how i have to do this...any help would be appreciated.
plz write small comments near the code whenever ur posting...because im a beginner.

Thank You
Posted
Comments
[no name] 26-Apr-12 7:42am    
What have you tried? What errors did you get? Where is the code the demonstrates your problem? What properties? What "global class"? Do you want someone to write up your project for you?

1 solution

Dear Friend,

You can take the help of GUID class for generating the verification code and sending it to user, as the GUID code always generate a unique sixtenn digit number.

Now with the help of hashtable you can store the user EMAILID with their verification code and can thereafter check the validity of the verification code.

Please refer the following link for more details:-

HashTable:-
http://www.dotnetperls.com/hashtable

http://www.homeandlearn.co.uk/csharp/csharp_s7p7.html

GUID:-
http://www.c-sharpcorner.com/uploadfile/prasoonk/guids-in-C-Sharp-and-net/

http://msdn.microsoft.com/en-us/library/system.guid.newguid.aspx

http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=335

Please don't forget to mark this as your answer if it helps you out.

Thanks

Varun Sareen
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900