472,143 Members | 1,586 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,143 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 1838
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Doug O'Leary | last post: by
6 posts views Thread by John | last post: by
3 posts views Thread by Thomas Hallgren | last post: by
reply views Thread by leo001 | last post: by

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.