473,507 Members | 11,372 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

56 New Member
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 1529

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

Similar topics

8
9053
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
1379
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
3082
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
1530
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
1261
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
1646
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
1594
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
4117
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
2430
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
4957
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...
0
7221
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7313
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7481
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5619
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3190
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1537
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.