Question

login.aspx email link syntax?

Asked by: kvnsdr

I 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.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2006-04-14 at 19:13:07ID21814739
Tags

aspx

,

email

,

syntax

,

login

,

link

Topic

Programming for ASP.NET

Participating Experts
2
Points
250
Comments
10

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

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.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

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.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

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.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Font registration
    My VB app uses WingDing 3 (Wingdng3.tif) Some target machines do not have this file, so I included in my InstallShield script. After installation, the file indeed becomes present on the target machine, but when the app runs, I get an error message that "Windng3.tif is ...
  2. Search Engine Registration
    Hi, Guys. I would ask you a question about search engine registration. I made up my site and I would register my site in Gogool. So here is my question. I have two different contents in my site. One is www.OOOOO.com/index.html --This is for My Web design service--, An...
  3. Registration Form
    Registration Form How do I program my Registration Form like Invision Power 2.1.0 Beta 5? when you don't enter a password, it will be like http://www.shen-media.com/password_blank.gif and if the two passwords don't match http://www.shen-media.com/password_not.gif and if t...
  4. Registration Form
    Registration Form How do I program my Registration Form like Invision Power 2.1.0 Beta 5? when you don't enter a password, it will be like http://www.shen-media.com/password_blank.gif and if the two passwords don't match http://www.shen-media.com/password_not.gif and if t...
  5. pull registrant
    i am loooking to pull registrant, i need to identify in excel if the registrant is a company that registers names on behalf of other companies ,because in that case i do not want to rely on the information collected (i.e. state , address , contact) this is buildign on the be...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

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.

Join the Community

Answers

 

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.

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/registration.aspx?registrationID=12341234123412341234

(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.com/registration.aspx?id=1234123412341234">here</a> to register".)

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

 

by: kvnsdrPosted on 2006-04-15 at 03:46:40ID: 16459876

Q. Do you know of any 'How-to' resouces so I may implement this on my web site?

 

by: asdaveyPosted on 2006-04-16 at 16:50:50ID: 16466276

Is the end goal here to implement some form of email validation?

 

by: kvnsdrPosted on 2006-04-17 at 09:19:04ID: 16470207

Yes. Just not sure how to read the actual login page particulars to insert the user and password like you have shown earlier.

Here's part of the IE 'source' from the login.aspx

 <form name="form1" method="post" action="login.aspx" onsubmit="javascript:return WebForm_OnSubmit();" id="form1">

 

by: asdaveyPosted on 2006-04-17 at 17:41:05ID: 16474022

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/aspnet/default.asp

I hope I haven't misunderstood your last comment and am telling you how to suck eggs. If I have, I apologise.

Andy

 

by: kvnsdrPosted on 2006-04-17 at 18:43:45ID: 16474255

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.Start( "http://ws.arin.net/cgi-bin/whois.pl?queryinput= " +  Textbox1.Text);

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_ClientValidate) == 'function') Page_ClientValidate(''); " name="Submit1" type="submit" id="Submit1" value="Logon" />
--------------------------------------------------------------------



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<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:return WebForm_OnSubmit();" id="form1">
<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="/wEPDwUKLTI4NzMzMDkzMGRk5dSJKZV+EHY2amSuN/3Xlx5Uss8=" />
</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.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
// -->
</script>



<script src="/shoppernet/WebResource.axd?d=p1zcT8-Oqe2qvWEncKN-AF0ssH_Qm7uCps5KoJon1qk1&amp;t=632753793973281250" type="text/javascript"></script>
<script type="text/javascript">
<!--
function WebForm_OnSubmit() {
if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;
return true;
}
// -->
</script>

    <div style="background:buttonface"><h3><font face="Arial">Logon:</font></h3>
    </div>
        <input name="txtIp" type="text" value="Your IP Address Is: xx.xx.xx.xx" id="txtIp" style="color:White;background-color:DarkRed;width:272px;" /><br />
    <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="RequiredFieldValidator1" style="color:Red;visibility:hidden;">*</span>
        </td>
        <td>&nbsp;
        </td>
    </tr>
    <tr>        
    <td>Password:</td>
        <td style="width: 160px"><input name="Password" type="password" id="Password" style="width: 164px" /></td>
        <td>
        <span id="RequiredFieldValidator2" style="color:Red;visibility:hidden;">*</span>
        </td>        
    <tr>    
    <td>
        Remember Me?</td>
        <td style="width: 160px"><span disabled="disabled"><input id="Persist" type="checkbox" name="Persist" disabled="disabled" onclick="javascript:setTimeout('__doPostBack(\'Persist\',\'\')', 0)" /></span>
        </td>
        <td></td>
    </tr>
</table>

<input language="javascript" onclick="if (typeof(Page_ClientValidate) == 'function') Page_ClientValidate(''); " name="Submit1" type="submit" id="Submit1" value="Logon" />
  <input language="javascript" onclick="if (typeof(Page_ClientValidate) == 'function') Page_ClientValidate(''); " name="Submit2" type="submit" id="Submit2" value="New User" style="width: 77px" /><br />
   

<span id="MsgAdd" style="display:inline-block;color:Red;font-family:Arial;font-size:10pt;width:480px;"></span>

   
<script type="text/javascript">
<!--
var Page_Validators =  new Array(document.getElementById("RequiredFieldValidator1"), document.getElementById("RequiredFieldValidator2"));
// -->
</script>

<script type="text/javascript">
<!--
var RequiredFieldValidator1 = document.all ? document.all["RequiredFieldValidator1"] : document.getElementById("RequiredFieldValidator1");
RequiredFieldValidator1.controltovalidate = "Email";
RequiredFieldValidator1.errormessage = "*";
RequiredFieldValidator1.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
RequiredFieldValidator1.initialvalue = "";
var RequiredFieldValidator2 = document.all ? document.all["RequiredFieldValidator2"] : document.getElementById("RequiredFieldValidator2");
RequiredFieldValidator2.controltovalidate = "Password";
RequiredFieldValidator2.errormessage = "*";
RequiredFieldValidator2.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
RequiredFieldValidator2.initialvalue = "";
// -->
</script>

<div>

      <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWBwKsu4WdAgKY+5bqDwKS18aDDQLSxeCRDwLfi9riDgLVo8avDgLwjOTECPz4RugL6hEvppBgebTvzxS6tL5S" />
</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>

 

by: asdaveyPosted on 2006-04-17 at 18:56:06ID: 16474297

:-$

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/login?userid=1234', then when I clicked on the link I would see the login page with the username and password fields filled in ready for me to click OK?

 

by: kvnsdrPosted on 2006-04-17 at 20:10:23ID: 16474638

Yes and if possible "Post" so the click is done as well.

 

by: asdaveyPosted on 2006-04-17 at 21:27:49ID: 16475022

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["userid"] != null)
  {
    string username, password;
   
    GetUsernameAndPasswordForUser(Request.QueryString["userid"], out username, out password);

    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.

 

by: tinhlahanPosted on 2006-04-18 at 03:42:36ID: 16476682

Ex: You can link complete http://localhost/myweb/complete.aspx?id=exid
exid in the database ,
http://localhost/myweb/complete.aspx is string complete page complete
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.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...