473,372 Members | 963 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,372 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 1903
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...
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...
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
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.