Q. Do you know of any 'How-to' resouces so I may implement this on my web site?
Main Topics
Browse All TopicsI would like to know how the url-link that I recieve in my email works. When I 'Register' into a new web site, I'm sent a link to click on to complete the registration.
Q. How does this work?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
You probably need to first understand how to develop a form in asp.net so that you can store the form's details in a database.
This is a fundamental principle for asp.net development, and I would recommend reading through some tutorials on the basics first. Once you've got those down pat, you will find that developing your own email validation solution will be pretty simple.
I recommend the following site for a start: http://www.w3schools.com/a
I hope I haven't misunderstood your last comment and am telling you how to suck eggs. If I have, I apologise.
Andy
I program in C# and ASP .NET for a living. I'm not offended. Nobody really know who their talking to at EE. Anyway I have email validation worked out just looking for a way to make the one-line-link work like other sites do. For instance, to place a request to Arin.net I would do the following:
System.Diagnostics.Process
I just not sure how to accomplish the same effect with an ASPX page.
Here the whole aspx page (Internet Explorer -> View -> Source) to give you an idea:
As you can see there are two textboxes and one 'Logon' button that clients normaly use.
1. <input name="Email" type="text" id="Email" style="width: 164px" />
2. <input name="Password" type="password" id="Password" style="width: 164px" />
3. <input language="javascript" onclick="if (typeof(Page_ClientValidat
--------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtm
<html xmlns="http://www.w3.org/1
<head><title>
Logon
</title>
<script language="JavaScript">
<!--
function SymError()
{
return true;
}
window.onerror = SymError;
var SymRealWinOpen = window.open;
function SymWinOpen(url, name, attributes)
{
return (new Object());
}
window.open = SymWinOpen;
//-->
</script>
</head>
<body>
<form name="form1" method="post" action="login.aspx" onsubmit="javascript:retur
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTI4NzMzMDk
</div>
<script type="text/javascript">
<!--
var theForm = document.forms['form1'];
if (!theForm) {
theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.valu
theForm.__EVENTARGUMENT.va
theForm.submit();
}
}
// -->
</script>
<script src="/shoppernet/WebResour
<script type="text/javascript">
<!--
function WebForm_OnSubmit() {
if (typeof(ValidatorOnSubmit)
return true;
}
// -->
</script>
<div style="background:buttonfa
</div>
<input name="txtIp" type="text" value="Your IP Address Is: xx.xx.xx.xx" id="txtIp" style="color:White;backgro
<table id="TABLE1">
<tr>
<td>Email:</td>
<td style="width: 160px"><input name="Email" type="text" id="Email" style="width: 164px" /></td>
<td><span id="RequiredFieldValidator
</td>
<td>
</td>
</tr>
<tr>
<td>Password:</td>
<td style="width: 160px"><input name="Password" type="password" id="Password" style="width: 164px" /></td>
<td>
<span id="RequiredFieldValidator
</td>
<tr>
<td>
Remember Me?</td>
<td style="width: 160px"><span disabled="disabled"><input
</td>
<td></td>
</tr>
</table>
<input language="javascript" onclick="if (typeof(Page_ClientValidat
<input language="javascript" onclick="if (typeof(Page_ClientValidat
<span id="MsgAdd" style="display:inline-bloc
<script type="text/javascript">
<!--
var Page_Validators = new Array(document.getElementB
// -->
</script>
<script type="text/javascript">
<!--
var RequiredFieldValidator1 = document.all ? document.all["RequiredFiel
RequiredFieldValidator1.co
RequiredFieldValidator1.er
RequiredFieldValidator1.ev
RequiredFieldValidator1.in
var RequiredFieldValidator2 = document.all ? document.all["RequiredFiel
RequiredFieldValidator2.co
RequiredFieldValidator2.er
RequiredFieldValidator2.ev
RequiredFieldValidator2.in
// -->
</script>
<div>
<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWBwKsu4WdAgKY+5b
</div>
<script type="text/javascript">
<!--
var Page_ValidationActive = false;
if (typeof(ValidatorOnLoad) == "function") {
ValidatorOnLoad();
}
function ValidatorOnSubmit() {
if (Page_ValidationActive) {
return ValidatorCommonOnSubmit();
}
else {
return true;
}
}
// -->
</script>
</form>
</body>
</html>
<script language="JavaScript">
<!--
var SymRealOnLoad;
var SymRealOnUnload;
function SymOnUnload()
{
window.open = SymWinOpen;
if(SymRealOnUnload != null)
SymRealOnUnload();
}
function SymOnLoad()
{
if(SymRealOnLoad != null)
SymRealOnLoad();
window.open = SymRealWinOpen;
SymRealOnUnload = window.onunload;
window.onunload = SymOnUnload;
}
SymRealOnLoad = window.onload;
window.onload = SymOnLoad;
//-->
</script>
:-$
So do I understand in that you would like to be able to populate the login details based on a hyperlink?
ie if you gave me the url 'http://www.mywebsite.com/
Well to populate the form variables (lets say they are txtUsername and txtPassword) you would use something like this:
Page_Load(object p_sender, EventArgs p_args)
{
if (Request.Querystring["user
{
string username, password;
GetUsernameAndPasswordForU
txtUsername.Text = username;
txtPassword.Text = password;
}
}
Now if you want to press the submit button (lets says its called cmdLogin) then it depends when you would like it to be pressed. You could simulate the button being pressed in code behind by calling the event handler for the click event:
cmdLogin_Click(null, EventArgs.Empty);
Or if you wanted to show the user the page and then press the button you would need to use some javascript (I don't know off the top of my head how you would do this).
But if all of this is to automatically log someone on from an email, you may just find it easier to have a page that accepts some sort of user identity token, and then invoke the same authentication routines that your login page uses (say FormsAuthentication), and skip the whole populating the login page controls.
Ex: You can link complete http://localhost/myweb/com
exid in the database ,
http://localhost/myweb/com
when you send emai complete for user, you can send string complete + exid in database, and when user try it, it rollback and tick in database, signal complete.
Business Accounts
Answer for Membership
by: asdaveyPosted on 2006-04-14 at 21:56:23ID: 16458937
Websites that use this registgration method want to confirm that the email address that you've supplied is a real email address. Sometimes they also wan't to confirm that a real person is signing up.
egistratio n.aspx? reg istrationI D=12341234 1234123412 34
.com/regis tration.as px? id=1234 1234123412 34">here</ a> to register".)
To acheive this the system will generate a unique id to associate with your registration information. This information is then probably persisted to a database table. The system then will generate an email that contains a link and will send this email to the email address you supplied earlier. The link/url embedded in the email will contain the unique identifier (I've seen numbers used as well as GUID's)
Example:
http://www.mynewsite.com/r
(If the email is a HTML formatted email, you may not see the unique identifier or the url at all since a lot of sites use this form "click <a href="http://www.mynewsite
When the website receives this request, it uses the unique number to find your registration information that you entered earlier and marks the data as being confirmed (since you have confirmed that you received the email, and have clicked on the link).
HIH
Andy