Click here to Skip to main content
15,890,438 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: login control error Pin
ABitSmart24-Feb-09 2:36
ABitSmart24-Feb-09 2:36 
QuestionConvert HTML to XML Pin
rhemy23-Feb-09 22:45
rhemy23-Feb-09 22:45 
QuestionMechanism to handle user authentication and authorization Pin
mukkanti00723-Feb-09 21:53
mukkanti00723-Feb-09 21:53 
AnswerRe: Mechanism to handle user authentication and authorization Pin
Expert Coming23-Feb-09 22:21
Expert Coming23-Feb-09 22:21 
GeneralRe: Mechanism to handle user authentication and authorization Pin
mukkanti00724-Feb-09 23:29
mukkanti00724-Feb-09 23:29 
QuestionSimple activation email Pin
netsooz (Amir Hamidi)23-Feb-09 21:52
netsooz (Amir Hamidi)23-Feb-09 21:52 
AnswerRe: Simple activation email Pin
Greg Chelstowski23-Feb-09 22:01
Greg Chelstowski23-Feb-09 22:01 
AnswerRe: Simple activation email Pin
Abhijit Jana23-Feb-09 22:04
professionalAbhijit Jana23-Feb-09 22:04 
1. First user fill the registration form.
2. User Click on the submit button.
3. On submit button click, you send him a activation mail for his account.
Now Following is my suggestion for your question.
netsooz (Amir Hamidi) wrote:
1- how can I send activation email (simply?)

Now, I will suggest, add one more filed called GUID in the DB. While sending the mail add the GUID with the corresponding user in the database and send the activation url.
Send a URL link with the email like
http://yourwebsite.com/Verification.aspx?Guid="AFDFASDFrwerwSDF@423"

Now, This GUID will ensure that, weather the user coming from the proper source or not. When user hits the URL, Read the Query String and verify the user GUID from the database. Now if its valid, then set the verfy_user filed to 1 and redirect user to Home Page.
netsooz (Amir Hamidi) wrote:
2- how can I prevent unactivate users from logging in?


During login, Check verfy_user field along with the User ID and Password. If user ID and password matched but verfy_user is still 0, then throw a message that Please activate your account.

Hope this will helps you to move ahead.

Good luck.

cheers,
Abhijit
CodeProject MVP

GeneralRe: Simple activation email Pin
J4amieC23-Feb-09 22:09
J4amieC23-Feb-09 22:09 
GeneralRe: Simple activation email Pin
Expert Coming23-Feb-09 22:12
Expert Coming23-Feb-09 22:12 
GeneralRe: Simple activation email Pin
J4amieC24-Feb-09 0:04
J4amieC24-Feb-09 0:04 
GeneralRe: Simple activation email Pin
Abhijit Jana23-Feb-09 22:13
professionalAbhijit Jana23-Feb-09 22:13 
GeneralRe: Simple activation email Pin
Expert Coming23-Feb-09 22:17
Expert Coming23-Feb-09 22:17 
GeneralRe: Simple activation email Pin
J4amieC24-Feb-09 0:00
J4amieC24-Feb-09 0:00 
GeneralRe: Simple activation email Pin
J4amieC24-Feb-09 0:02
J4amieC24-Feb-09 0:02 
GeneralRe: Simple activation email Pin
Abhijit Jana24-Feb-09 0:42
professionalAbhijit Jana24-Feb-09 0:42 
QuestionLeftMouseUp / LeftMouseDown events for ASP.NET controls Pin
alvarog0123-Feb-09 21:46
alvarog0123-Feb-09 21:46 
AnswerRe: LeftMouseUp / LeftMouseDown events for ASP.NET controls Pin
Greg Chelstowski23-Feb-09 22:16
Greg Chelstowski23-Feb-09 22:16 
GeneralRe: LeftMouseUp / LeftMouseDown events for ASP.NET controls Pin
alvarog0123-Feb-09 23:20
alvarog0123-Feb-09 23:20 
GeneralRe: LeftMouseUp / LeftMouseDown events for ASP.NET controls Pin
Greg Chelstowski23-Feb-09 23:41
Greg Chelstowski23-Feb-09 23:41 
GeneralRe: LeftMouseUp / LeftMouseDown events for ASP.NET controls Pin
alvarog0124-Feb-09 0:30
alvarog0124-Feb-09 0:30 
Questiongetting postback in inside the updatepanel..., Pin
Member 387988123-Feb-09 21:44
Member 387988123-Feb-09 21:44 
Questionrecord search Pin
raizadasanju23-Feb-09 20:59
raizadasanju23-Feb-09 20:59 
AnswerRe: record search Pin
Abhijit Jana23-Feb-09 21:05
professionalAbhijit Jana23-Feb-09 21:05 
AnswerRe: record search Pin
Ashfield23-Feb-09 21:07
Ashfield23-Feb-09 21:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.