473,883 Members | 2,150 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

redirect user to page

On my web app I require a user to log in so I can validate them. At times
I'll be sending emails out for a reporting page in the web app, How can I
have the user goto the link I sent to them after they log in and get
validated?
example:
I send http://www.mycaresales.com/reports.aspx

now when they click that link it will take them to the logon page, they get
validated login then they see the first page of my web app, once they log in
I want to take them to http://www.mycarsales.com/reports.aspx instead of
having them navigate through the site to get to this page.
Jun 6 '06 #1
2 1506
You could capture the HTTP-REFERER server variable on the login page, & then
redirect them after successful authentication. FYI in ASP.NET 2.0 the
default authentication model will automatically redirect users.

Ben Strackany
www.developmentnow.com
"John" <wh****@gmail.c om> wrote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
On my web app I require a user to log in so I can validate them. At times
I'll be sending emails out for a reporting page in the web app, How can I
have the user goto the link I sent to them after they log in and get
validated?
example:
I send http://www.mycaresales.com/reports.aspx

now when they click that link it will take them to the logon page, they
get validated login then they see the first page of my web app, once they
log in I want to take them to http://www.mycarsales.com/reports.aspx
instead of having them navigate through the site to get to this page.

Jun 6 '06 #2
ok thanks,
I'm coding in 2.0 but I created my own Logon screen, etc. to validate the
user. I couldn't get noneof the 2.0 logon controls, API's working with my
existing database to validate and login the users

"Benjamin Strackany" <re*******@wont nempoleved.moc> wrote in message
news:uI******** ******@TK2MSFTN GP04.phx.gbl...
You could capture the HTTP-REFERER server variable on the login page, &
then redirect them after successful authentication. FYI in ASP.NET 2.0 the
default authentication model will automatically redirect users.

Ben Strackany
www.developmentnow.com
"John" <wh****@gmail.c om> wrote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
On my web app I require a user to log in so I can validate them. At times
I'll be sending emails out for a reporting page in the web app, How can I
have the user goto the link I sent to them after they log in and get
validated?
example:
I send http://www.mycaresales.com/reports.aspx

now when they click that link it will take them to the logon page, they
get validated login then they see the first page of my web app, once they
log in I want to take them to http://www.mycarsales.com/reports.aspx
instead of having them navigate through the site to get to this page.


Jun 6 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2975
by: Simon | last post by:
Hi, I have a Login.php page that logs the user in and out. I has two forms within the page, (depending on what we are trying to do), either one to log in or out. The form calls itself using a post method and either logs the user in our out given the information from the form. but every pages use sessions and cookies, if the user is successfully logged in then the cookies and session values are updated, (as well as MySQL).
5
2203
by: Steve Lutz | last post by:
Hello, I have a page that creates a class, and then on certain conditions, redirects user to another page. The class has a Class_Terminate() function that saves itself to a database. The class comes from an includes ASP file, it isn't a COM object. Here's my code outline (not actual code for brevity - in otherwords, there may be syntax errors, but that's not the cause of the problem)
4
5396
by: Marty U. | last post by:
I have a Session variable I need to check the value of. If it is value a then redirect to some page. I need to implement this in a user control that is on all the relevent pages. I placed the if and redirect statement within the page_load of the user control. However, when you try to access any page that has the user control it simply loads for minutes and never actually redirects. What am I missing with executing the response.redirect...
2
2877
by: Dr. Paul Caesar - CoullByte (UK) Limited | last post by:
Hi, I have created a Logout ASP.NET application using Forms Authentication. When a user logs out they get a confirmation page confirming logout and a button to click to return to the homepage. We have the page designed so that if the user is not authenticated then they get redirected using Response Redirect method to the homapage.
10
12225
by: GreggTB | last post by:
I've got an page (LOGIN.ASPX) that receives the user's login information. During the page load, it checks the credentials against a database and, if validation is successful, creates an instance of an object that stores the user's basic profile data (username, user type, associated sales region, etc.). I've been taking this user info and placing it in the Session object like so... Session = user;
6
5813
by: Coleen | last post by:
Hi all :-) I need to redirect to multiple pages on click of a transmit button, without redisplaying each page. This redirection is to capture session variables that are created on each page and pass them to the main page to be displayed. We are actually NOT using session variables, but storing the values in a temporary table. The problem is that the values don't get stored in the temporary table unless the user goes to each page...
5
4577
by: venner | last post by:
I'm having an issue with an ASP.NET website after upgrading to ASP.NET 2.0. The website makes use of a central authentication service (CAS) provided at the university I work for. Each page checks a session variable, and if it is not present, does a Response.Redirect to a webpage for the CAS passing a url parameter for the url to post back to. The CAS provides a page for the user to log into, validates the username and password, and then...
56
7269
by: UKuser | last post by:
Hi, I'm not sure if this can be done as I've searched the web and this forum. I am using an online merchant provider and I must post certain variables to their webforms through a form on my website. The issue is that I need to gauge whether a user has any items in their basket to decide which page I redirect them too. I could
18
2684
by: Paul Lautman | last post by:
JRough wrote: What do you mean by "redirect the output to Excel"??? Excel isn't a location, it's a spreadsheet program that some (but not all users) will have on their machine. BTW, Location: is supposed to take a fully qualified URL.
1
7302
by: gnawz | last post by:
Hi guys, I have a couple of php files that perform various tasks. I will use fields in my system and provide code as well I need help as follows: My database contains the fields Category and Brand I need to make some changes on a a number of brands in a Category
0
9945
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11160
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10766
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10863
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,...
0
9588
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7136
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
5807
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...
1
4622
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
4230
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.