Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Detect an external email address

Detect an external email address

Scheduled Pinned Locked Moved ASP.NET
helpdatabasecsharp
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dayekh
    wrote on last edited by
    #1

    Hi all, I am trying to code a procedure in VB.Net where a user clicks on a link and the page detects the email of the person. This way I will be able to validate that it is a new user who has accessed the activation aspx page. Currently, I have the follwing: IF Request.QueryString("uid") > 0 THEN 'activate user ELSE 'display error message END IF I can also query the DB to see if the userID is > 0 AND if the activation status is false, but it is still not specific enough. If I can include his EMAIL ADDRESS in the query, I will have solved the issue. Thanks for your help!

    J 1 Reply Last reply
    0
    • D Dayekh

      Hi all, I am trying to code a procedure in VB.Net where a user clicks on a link and the page detects the email of the person. This way I will be able to validate that it is a new user who has accessed the activation aspx page. Currently, I have the follwing: IF Request.QueryString("uid") > 0 THEN 'activate user ELSE 'display error message END IF I can also query the DB to see if the userID is > 0 AND if the activation status is false, but it is still not specific enough. If I can include his EMAIL ADDRESS in the query, I will have solved the issue. Thanks for your help!

      J Offline
      J Offline
      JHizzle
      wrote on last edited by
      #2

      Well because your user might have a browser but not an email client or multiple registered emails, there's no linkage between machine and email address or browser and email address so you're basically going to have to add another variable to your querysting to include their registered email (I'm assuming your link is sent out via mail a la a forum registration message).

      D 1 Reply Last reply
      0
      • J JHizzle

        Well because your user might have a browser but not an email client or multiple registered emails, there's no linkage between machine and email address or browser and email address so you're basically going to have to add another variable to your querysting to include their registered email (I'm assuming your link is sent out via mail a la a forum registration message).

        D Offline
        D Offline
        Dayekh
        wrote on last edited by
        #3

        Thanks for the answer! I see what you mean.. query the email that they input and send it to his email.. when it arrives back to the application, it will be there ready for me to query! Sometimes the solution is soo simple! Thanks again :D

        J 1 Reply Last reply
        0
        • D Dayekh

          Thanks for the answer! I see what you mean.. query the email that they input and send it to his email.. when it arrives back to the application, it will be there ready for me to query! Sometimes the solution is soo simple! Thanks again :D

          J Offline
          J Offline
          JHizzle
          wrote on last edited by
          #4

          My only extension would be to encrypt the value on the way out and then decode it in your page's code when they come back. Just because someone might mess around with the URL, randomly entering IDs and email combinations. It's unlikely I'll admit but it's just one of those things I end up doing just for peace of mind.

          D 1 Reply Last reply
          0
          • J JHizzle

            My only extension would be to encrypt the value on the way out and then decode it in your page's code when they come back. Just because someone might mess around with the URL, randomly entering IDs and email combinations. It's unlikely I'll admit but it's just one of those things I end up doing just for peace of mind.

            D Offline
            D Offline
            Dayekh
            wrote on last edited by
            #5

            Good Call.. I will do that.. I shall use an encryption algorithm. Thanks!

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups