473,666 Members | 2,392 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 1536

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

Similar topics

8
9065
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 oUser.EmailAddress But I get the following message: "The directory property cannot be found in the cache. "
1
1387
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 administration section. I right clicked the /admin in Visual Studio and Added a new Class (AuthenticateUser). However, in my Login.aspx I can not use use that class. It gives me the following error message. c:\...\admin\Login.aspx.cs(29): The type or...
5
3090
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. Thanx in advance.. Regards,
6
1539
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 writing to a file but quickly found when multiple clients are hitting the web page at the same time it causes all kinds of issues with multiple threads trying to use the same file. I was wondering if anyone has a solution they would like to share...
2
1269
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 The problem here is that if something did go wrong instantiating the handler, you have no idea what the problem was (permissions, syntax error, wrong parameters), and later on you get a message like:
1
1656
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
1611
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 buttons submit & cancle .
7
4121
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 following error: "No connection could be made because the target machine actively refused it "
3
2435
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: <input type="hidden" name="URL" value="<%= Request.ServerVariables("HTTP_REFERER")%>"> The action page uses CDOsys to send the email: My abridged code: <%@LANGUAGE="VBSCRIPT"%> <% strFrom = Request.Form("FromEmail") strFromName =...
9
4965
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 updated. How do I prevent the same record from being seen by more than one cs rep at a time? I am confident in the row/page locking mechanism once a cs rep starts an update process. It is too late if a second cs rep has seen the same record and has...
0
8352
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8549
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6189
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5661
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4192
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4358
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2765
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 we have to send another system
2
2005
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1763
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.