473,320 Members | 1,580 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,320 software developers and data experts.

Verifying user's email address

Hi all,

In my recent ASP.NET 2.0 appl, I need to verify that the supplied email address is valid or not. So, here's my situation:
- In my <profilearea, I created <isVerifiedproperty.
- Suppose a new user has been created. I set the profile.isverified to false.
OnCreatedUser event I'll send him an email (to the supplied email address) to verify their email address with a link in it to an ASPX page that'll do the verification, e.g: verify.aspx?u=aUserName
- On page_load of verify.aspx, I want to change the <isVerifiedproperty to true and set the <isApprovedto true, so he can start log in.

How to do this? I'm using ASP.NET 2.0 (VB.NET) and MSSQL 2K for membership database.

Thanks in advance,
Mike

Jul 25 '06 #1
4 1900
To accomplish this I normally tie in the "IsVerified" or "IsApproved"
properties to your membership table in MSSQL. Create a bit field called
"IsVerified" or "IsApproved" when the account is created, it will be
set to false(0) by default. Upon them receiving an email and clicking a
link that you provide, it will update the fields to true(1). You should
also check these fields when the login method is called from your
login object. This is the way I normally do it, if there is a better
way I'd like to hear it!

Mike wrote:
Hi all,

In my recent ASP.NET 2.0 appl, I need to verify that the supplied email address is valid or not. So, here's my situation:
- In my <profilearea, I created <isVerifiedproperty.
- Suppose a new user has been created. I set the profile.isverified to false.
OnCreatedUser event I'll send him an email (to the supplied email address) to verify their email address with a link in it to an ASPX page that'll do the verification, e.g: verify.aspx?u=aUserName
- On page_load of verify.aspx, I want to change the <isVerifiedproperty to true and set the <isApprovedto true, so he can start log in.

How to do this? I'm using ASP.NET 2.0 (VB.NET) and MSSQL 2K for membership database.

Thanks in advance,
Mike

------=_NextPart_000_0160_01C6B025.3C5C2C70
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Google-AttachSize: 1421

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi all,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>In my recent ASP.NET 2.0 appl, I need to verify
that the supplied email address is valid or not. So, here's my situation:<BR>-
In my &lt;profile&gt; area, I created &lt;isVerified&gt; property.<BR>- Suppose
a new user has been created. I set the profile.isverified to false.
<BR>OnCreatedUser event I'll send him an email (to the supplied email address)
to verify their email address with a link in it to an ASPX page that'll do the
verification, e.g: verify.aspx?u=aUserName<BR>- On page_load of verify.aspx, I
want to change the &lt;isVerified&gt; property to true and set the
&lt;isApproved&gt; to true, so he can start log in.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>How to do this? I'm using ASP.NET 2.0 (VB.NET) and
MSSQL 2K for membership database.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks in
advance,<BR>Mike<BR></FONT></DIV></BODY></HTML>

------=_NextPart_000_0160_01C6B025.3C5C2C70--
Jul 25 '06 #2
I just realized that this sentence in my reply..

"Create a bit field called
"IsVerified" or "IsApproved" when the account is created"

should read

"Create a bit field called IsVerified or IsApproved in your membership
table, then when the account is created, it will be
set to false(0) by default."
sorry
tfsmag wrote:
To accomplish this I normally tie in the "IsVerified" or "IsApproved"
properties to your membership table in MSSQL. Create a bit field called
"IsVerified" or "IsApproved" when the account is created, it will be
set to false(0) by default. Upon them receiving an email and clicking a
link that you provide, it will update the fields to true(1). You should
also check these fields when the login method is called from your
login object. This is the way I normally do it, if there is a better
way I'd like to hear it!

Mike wrote:
Hi all,

In my recent ASP.NET 2.0 appl, I need to verify that the supplied email address is valid or not. So, here's my situation:
- In my <profilearea, I created <isVerifiedproperty.
- Suppose a new user has been created. I set the profile.isverified to false.
OnCreatedUser event I'll send him an email (to the supplied email address) to verify their email address with a link in it to an ASPX page that'll do the verification, e.g: verify.aspx?u=aUserName
- On page_load of verify.aspx, I want to change the <isVerifiedproperty to true and set the <isApprovedto true, so he can start log in.

How to do this? I'm using ASP.NET 2.0 (VB.NET) and MSSQL 2K for membership database.

Thanks in advance,
Mike

------=_NextPart_000_0160_01C6B025.3C5C2C70
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Google-AttachSize: 1421

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi all,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>In my recent ASP.NET 2.0 appl, I need to verify
that the supplied email address is valid or not. So, here's my situation:<BR>-
In my &lt;profile&gt; area, I created &lt;isVerified&gt; property.<BR>- Suppose
a new user has been created. I set the profile.isverified to false.
<BR>OnCreatedUser event I'll send him an email (to the supplied email address)
to verify their email address with a link in it to an ASPX page that'll do the
verification, e.g: verify.aspx?u=aUserName<BR>- On page_load of verify.aspx, I
want to change the &lt;isVerified&gt; property to true and set the
&lt;isApproved&gt; to true, so he can start log in.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>How to do this? I'm using ASP.NET 2.0 (VB.NET) and
MSSQL 2K for membership database.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks in
advance,<BR>Mike<BR></FONT></DIV></BODY></HTML>

------=_NextPart_000_0160_01C6B025.3C5C2C70--
Jul 25 '06 #3
Thanks for the reply,

'IsVerified' is my own created property in the profile, as opposed to the
'IsApproved' which is .NET 2.0 membership built-in property.

But, based on your suggestion I have an idea of creating an additional field
(that is: isVerified which is set to false by default) in the built-in
ASP.NET membership table (aspnet_users, I presummed?). But, my next question
is: Would it be tampered ASP.NET built-in membership functionality,as it
altered the standard schema its created?

Thanks,
Andy

"tfsmag" <tf****@gmail.comwrote in message
news:11**********************@75g2000cwc.googlegro ups.com...
>I just realized that this sentence in my reply..

"Create a bit field called
"IsVerified" or "IsApproved" when the account is created"

should read

"Create a bit field called IsVerified or IsApproved in your membership
table, then when the account is created, it will be
>set to false(0) by default."

sorry
tfsmag wrote:
>To accomplish this I normally tie in the "IsVerified" or "IsApproved"
properties to your membership table in MSSQL. Create a bit field called
"IsVerified" or "IsApproved" when the account is created, it will be
set to false(0) by default. Upon them receiving an email and clicking a
link that you provide, it will update the fields to true(1). You should
also check these fields when the login method is called from your
login object. This is the way I normally do it, if there is a better
way I'd like to hear it!

Mike wrote:
Hi all,

In my recent ASP.NET 2.0 appl, I need to verify that the supplied email
address is valid or not. So, here's my situation:
- In my <profilearea, I created <isVerifiedproperty.
- Suppose a new user has been created. I set the profile.isverified to
false.
OnCreatedUser event I'll send him an email (to the supplied email
address) to verify their email address with a link in it to an ASPX
page that'll do the verification, e.g: verify.aspx?u=aUserName
- On page_load of verify.aspx, I want to change the <isVerified>
property to true and set the <isApprovedto true, so he can start log
in.

How to do this? I'm using ASP.NET 2.0 (VB.NET) and MSSQL 2K for
membership database.

Thanks in advance,
Mike

------=_NextPart_000_0160_01C6B025.3C5C2C70
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Google-AttachSize: 1421

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi all,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>In my recent ASP.NET 2.0 appl, I need to
verify
that the supplied email address is valid or not. So, here's my
situation:<BR>-
In my &lt;profile&gt; area, I created &lt;isVerified&gt; property.<BR>-
Suppose
a new user has been created. I set the profile.isverified to false.
<BR>OnCreatedUser event I'll send him an email (to the supplied email
address)
to verify their email address with a link in it to an ASPX page that'll
do the
verification, e.g: verify.aspx?u=aUserName<BR>- On page_load of
verify.aspx, I
want to change the &lt;isVerified&gt; property to true and set the
&lt;isApproved&gt; to true, so he can start log in.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>How to do this? I'm using ASP.NET 2.0
(VB.NET) and
MSSQL 2K for membership database.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks in
advance,<BR>Mike<BR></FONT></DIV></BODY></HTML>

------=_NextPart_000_0160_01C6B025.3C5C2C70--

Jul 26 '06 #4
Ok, I'll try that out (my prev post), and let you know the result.

Thanks,
Andy

"Mike" <ne*********@hotmail.comwrote in message news:%2*****************@TK2MSFTNGP02.phx.gbl...
Hi all,

In my recent ASP.NET 2.0 appl, I need to verify that the supplied email address is valid or not. So, here's my situation:
- In my <profilearea, I created <isVerifiedproperty.
- Suppose a new user has been created. I set the profile.isverified to false.
OnCreatedUser event I'll send him an email (to the supplied email address) to verify their email address with a link in it to an ASPX page that'll do the verification, e.g: verify.aspx?u=aUserName
- On page_load of verify.aspx, I want to change the <isVerifiedproperty to true and set the <isApprovedto true, so he can start log in.

How to do this? I'm using ASP.NET 2.0 (VB.NET) and MSSQL 2K for membership database.

Thanks in advance,
Mike

Jul 26 '06 #5

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

Similar topics

10
by: Chris Sharman | last post by:
I'm doing a rough validation of an email address client-side (using js), but it's not enough - our customer service people are apparently incapable of typing in an email address without error - we...
4
by: HD | last post by:
Hi, I was wondering if there is a way of verifying information that is in the registry of the user's computer??? Or is there a way of checking if a file is on the c:\ of the user's computer?? I...
9
by: Carter Smith | last post by:
http://www.icarusindie.com/wiki/index.php/Server-Side_Javascript_Check Sample source included This method requires that your pages are PHP enabled and you have mySQL. Although I suppose you...
10
by: Doug O'Leary | last post by:
Hey, all. I have a perl script which generates the html listed below. I cleaned it up a bit since the perl CGI module creates some really ugly html code. I've looked at this thing 8 ways to...
6
by: John | last post by:
Hi I have several web forms that require users verification by entering a code before they are allowed in. I have created a separate web form for entering and verifying user code. How do I...
3
by: Thomas Hallgren | last post by:
I'm connected to a database and I want to verify that a username and password for some user is correct. I know I can verify a users existence by doing: select exists(select * from pg_user where...
1
by: foothills bhc | last post by:
I have a problem with verifying content of controls on a form before closing the form or moving to the next form "record" (i.e., when moving to the next row of my form's record source). HERE'S THE...
11
by: Toast | last post by:
First of all... I'm very new to all of this and really do not know anything more than how to "snoop" and try to see what things might be causing problems. I do not know how to program. Everything...
1
by: kang jia | last post by:
hi when user entered particulars in signuppage and click" signup" button, i will direct them to do_signup.php. if say the NRIC is dupicate in datebase, i will redirect them back to signup page...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.