473,287 Members | 3,319 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,287 software developers and data experts.

Why user's email not showing on page after logging on?

Hello

In my log-on page, my code includes the following:

Expand|Select|Wrap|Line Numbers
  1. Protected Sub LogonBtn_Click(sender As Object, e As EventArgs) Handles LogonBtn.Click
  2.  
  3.         'Retrive the post values and call the authentication method
  4.  
  5.         Dim Authenticated As Boolean = Authenticate(strEmailTextBox.Text, passwordTextBox.Text)
  6.  
  7.         'If we found results then redirect to the userpage.aspx
  8.  
  9.         If Authenticated Then
  10.  
  11.             Dim target = String.Format("~/userpage.aspx?strEmail={0}", strEmailTextBox.Text)
  12.  
  13.             Response.Redirect(target, False)
  14.  
  15.         Else
  16.  
  17.             MsgBox("Sorry, email or password not found")
  18.  
  19.         End If
  20.  
  21.     End Sub
  22.  
While the user IS sent to username.aspx, that page does not display his email address and it should do.

strEmailValue is the user's email, the variable that is unknown until the user types it in when logging on.

strEmailTextBox is the TextBox he types the variable, his email address, into.

strEmail is the email column in my Access database.

So, looking again at the code above, shouldn't strEmail in this line:

Expand|Select|Wrap|Line Numbers
  1. Dim target = String.Format("~/userpage.aspx?strEmail={0}", strEmailTextBox.Text)
really be:

Expand|Select|Wrap|Line Numbers
  1.  Dim target = String.Format("~/userpage.aspx?strEmailValue={0}", strEmailTextBox.Text)
I am just trying to identify where the problem could reside.

Many thanks!
May 19 '16 #1
0 1521

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: CJM | last post by:
I'm trying to retrieve the users email address via ADSI in ASP. So far, I have the following code: Set oUser = GetObject("WinNT://domain/" & Request.Form("UID") & ",user") Response.Write...
1
by: Maziar Aflatoun | last post by:
Hi everyone, My web application runs in / however, my administration resides in /admin folder. Inside my /admin I have a Login.aspx which is used to authenticate users who use the...
5
by: Das | last post by:
Hi, I'm trying to email html page & that page also contains the images. I can do that when we send html page from ms outlook. But I want to attach page c# code & send the mail through smtp mail....
6
by: Matt | last post by:
I have an ASP.Net page that receives batch transmissions of data from clients. I would like to add some type of logging to this application so I can review transmission issues easily. I tried...
2
by: Chris Curvey | last post by:
The following code exists in logging/config.py handlers = h except: #if an error occurs when instantiating a handler, too bad pass #this could happen e.g. because of lack of privileges ...
1
by: tranky | last post by:
hi... ....i've a question for you! I use in web.config this: <location path="xxx/yyy"> <system.web> <authorization> <allow roles="x1,x2,x3,x4"/> <deny users="?"/> </authorization>
2
by: prash.marne | last post by:
hi all , this is a very simple problem but i need some help, My situation is : i have a form which opens in a pop-up window , in which user will insert his email-id & name , there are two...
7
by: John | last post by:
Hi there, I'm sure this is very basic for those who know..............but can anyone tell what I'm doing wrong? I'm trying out a 'send email from page' from a Wrox book and getting the...
3
by: MrCorbeaux | last post by:
My "Email a Webpage" form works find except when the end user receives the email, the URL is text only and not a hyperlink. The "Email a Page" form calls the URL from the previous page using: ...
9
by: bgroves | last post by:
I have an Access 2007 application that displays a work queue for approx 4 customer service reps. Each record in the queue represents an existing customer that must be contacted and demographics...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.