473,385 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Validating new users by way of email

JJ
When I new user registers on my web site I want to force them to click on a
link in a sent email to confirm that their email is correct.

I have searched high and low for this but I am probably using the wrong
search terms.

Is this built into asp.net 2.0, or is there another way of acheiving this?

JJ
Sep 10 '06 #1
6 1334
On Sun, 10 Sep 2006 18:29:13 +0100, "JJ" <ab*@xyz.comwrote:
>When I new user registers on my web site I want to force them to click on a
link in a sent email to confirm that their email is correct.

I have searched high and low for this but I am probably using the wrong
search terms.

Is this built into asp.net 2.0, or is there another way of acheiving this?

JJ
Most sites just don't complete the registration process until the email sent has
been clicked, sending confirmation of the email. I don't believe it a good
practice to try to force anyone to comply with ones wishes, do you?
Good luck with your project,

Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com
Sep 10 '06 #2
On Sun, 10 Sep 2006 JJ <ab*@xyz.comwrote:
When I new user registers on my web site I want to force them to click on a
link in a sent email to confirm that their email is correct.

I have searched high and low for this but I am probably using the wrong
search terms.
very simple. Generate a random number when this user creates an account.
Store the random number in a column on the user's row in the database
table.

Send a link like : http:www.mysite.com/verify.aspx?code=343244322342

in the email.

If the verify code matches the one stored in the database, then activate
their account.
--

fiddlewidawiddum
Sep 10 '06 #3
Stimp wrote:
On Sun, 10 Sep 2006 JJ <ab*@xyz.comwrote:
>When I new user registers on my web site I want to force them to
click on a link in a sent email to confirm that their email is
correct.

I have searched high and low for this but I am probably using the
wrong search terms.

very simple. Generate a random number when this user creates an
account. Store the random number in a column on the user's row in the
database table.

Send a link like : http:www.mysite.com/verify.aspx?code=343244322342

in the email.

If the verify code matches the one stored in the database, then
activate their account.
For completeness, you need to build a separate page verify.aspx
that is opened from the mail with a link.
When this page is opened, it will run code (in Page_Load) to complete the
registration.

--

Riki
Sep 10 '06 #4
On Sun, 10 Sep 2006 Riki <ri**@dontnagme.comwrote:
Stimp wrote:
>On Sun, 10 Sep 2006 JJ <ab*@xyz.comwrote:
>>When I new user registers on my web site I want to force them to
click on a link in a sent email to confirm that their email is
correct.

I have searched high and low for this but I am probably using the
wrong search terms.

very simple. Generate a random number when this user creates an
account. Store the random number in a column on the user's row in the
database table.

Send a link like : http:www.mysite.com/verify.aspx?code=343244322342

in the email.

If the verify code matches the one stored in the database, then
activate their account.

For completeness, you need to build a separate page verify.aspx
that is opened from the mail with a link.
When this page is opened, it will run code (in Page_Load) to complete the
registration.
for even more completeness :P~ ...

I forgot to mention you should also pass the user's id in the link.

e.g. http://www.mysite.com/verify.aspx?u=123&code=98765465
--

fiddlewidawiddum
Sep 10 '06 #5
JJ
Sorry to be so stupid:

Would I set the 'IsApproved' bit to 0 on the users record until the email is
confirmed?
Can I perhaps add this as a hidden field to the default create user
control?:
<asp:TextBox runat="server" ID="IsApproved" TextMode="Password"
Visible="false" Text="1" /></td>

Does this then get added to the user records 'IaApproved' field?

Thanks in advance,

JJ

"Stimp" <re*@spumco.comwrote in message
news:sl****************@murphy.redbrick.dcu.ie...
On Sun, 10 Sep 2006 Riki <ri**@dontnagme.comwrote:
>Stimp wrote:
>>On Sun, 10 Sep 2006 JJ <ab*@xyz.comwrote:
When I new user registers on my web site I want to force them to
click on a link in a sent email to confirm that their email is
correct.

I have searched high and low for this but I am probably using the
wrong search terms.

very simple. Generate a random number when this user creates an
account. Store the random number in a column on the user's row in the
database table.

Send a link like : http:www.mysite.com/verify.aspx?code=343244322342

in the email.

If the verify code matches the one stored in the database, then
activate their account.

For completeness, you need to build a separate page verify.aspx
that is opened from the mail with a link.
When this page is opened, it will run code (in Page_Load) to complete the
registration.

for even more completeness :P~ ...

I forgot to mention you should also pass the user's id in the link.

e.g. http://www.mysite.com/verify.aspx?u=123&code=98765465
--

fiddlewidawiddum

Sep 11 '06 #6
JJ
OK I'm totally stuck now. If someone can tell me how to set the IsApproved
bit to 0 (false) within the creatuser control then please post here!

JJ
"Stimp" <re*@spumco.comwrote in message
news:sl****************@murphy.redbrick.dcu.ie...
On Sun, 10 Sep 2006 Riki <ri**@dontnagme.comwrote:
>Stimp wrote:
>>On Sun, 10 Sep 2006 JJ <ab*@xyz.comwrote:
When I new user registers on my web site I want to force them to
click on a link in a sent email to confirm that their email is
correct.

I have searched high and low for this but I am probably using the
wrong search terms.

very simple. Generate a random number when this user creates an
account. Store the random number in a column on the user's row in the
database table.

Send a link like : http:www.mysite.com/verify.aspx?code=343244322342

in the email.

If the verify code matches the one stored in the database, then
activate their account.

For completeness, you need to build a separate page verify.aspx
that is opened from the mail with a link.
When this page is opened, it will run code (in Page_Load) to complete the
registration.

for even more completeness :P~ ...

I forgot to mention you should also pass the user's id in the link.

e.g. http://www.mysite.com/verify.aspx?u=123&code=98765465
--

fiddlewidawiddum

Sep 11 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: The Plankmeister | last post by:
Hi... What's the best method of validating input characters? I would like to prevent users submitting exotic characters (such as those acquired on Windows Systems by pressing ALT+) and thought...
2
by: Joris Janssens | last post by:
I'm trying to write a program for validating XHTML 1.1-documents against the XHTML 1.1 DTD (which is actually the same as validating an XML-file) but I always get a "(404) Not found" error. This...
2
by: bildad | last post by:
The following 'book example' of validating input seems to be incomplete. Since it is a beginner's book it may be intentional for simplicity. But I would like to know how to make this program work...
4
by: easoftware | last post by:
I am using VS .Net 2003 and VB. I have an app with one parent and two Mdi child forms. I need to validate data in the Mdi form. The Form.Validating event works when I try to close a Mdi form,...
6
by: Ryan | last post by:
I have a windows form that I want to force validation on controls (text boxes) when the user clicks a "Save" button. The only way I've found to do this is to cycle through every control and call...
232
by: robert maas, see http://tinyurl.com/uh3t | last post by:
I'm working on examples of programming in several languages, all (except PHP) running under CGI so that I can show both the source files and the actually running of the examples online. The first...
3
by: Jennifer.Berube | last post by:
okay...so I got this login script and I edited it all and it seems to run fine...IE it listens to the script as far as permissions go when I place a restriction on a page and when you login it...
2
by: hardieca | last post by:
Hi, I'd like to know if anyone knows of any resources detailing the best practices of validating rules in the business tier and providing helpful error messages to users in the UI tier. All the...
2
by: lrheeza | last post by:
Hello everyone, I am a newbie at MS Access and I need help!!! I am importing an excel file using Import functionality in MS Access, all the fields are required but there are instances in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.