473,385 Members | 1,309 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,385 software developers and data experts.

redirect to page

I have written a web app that includes a login page. When a user
successfully logs in, they are taken to the main web app page. I have a
button on this page that I want to use to redirect the user to another page,
but i use a response.redirect statement behind the button, and when clicking
this, I am taken back to the login page instead of the new page I want to
goto. Help!
Nov 18 '05 #1
3 1819
We need to see your code.

"Tom Nowak" <To******@discussions.microsoft.com> wrote in message
news:F7**********************************@microsof t.com...
I have written a web app that includes a login page. When a user
successfully logs in, they are taken to the main web app page. I have a
button on this page that I want to use to redirect the user to another
page,
but i use a response.redirect statement behind the button, and when
clicking
this, I am taken back to the login page instead of the new page I want to
goto. Help!

Nov 18 '05 #2
Button Code

Private Sub btnReport_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnReport.Click

Response.Redirect("reports.aspx")

End Sub

Section of Web Config Code

<authentication mode="Forms">
<forms loginUrl="login.aspx" />
</authentication>
<authorization>
<deny users="?" />
</authorization>

</system.web>

<location path="school.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>

</configuration>
"Scott M." wrote:
We need to see your code.

"Tom Nowak" <To******@discussions.microsoft.com> wrote in message
news:F7**********************************@microsof t.com...
I have written a web app that includes a login page. When a user
successfully logs in, they are taken to the main web app page. I have a
button on this page that I want to use to redirect the user to another
page,
but i use a response.redirect statement behind the button, and when
clicking
this, I am taken back to the login page instead of the new page I want to
goto. Help!


Nov 18 '05 #3
Are you calling RedirectFromLoginPage in your login page?

Travis Murray
MCSD, MCT
Artiem Consulting, Inc.
http://www.artiem.com

"Tom Nowak" <To******@discussions.microsoft.com> wrote in message
news:0B**********************************@microsof t.com...
Button Code

Private Sub btnReport_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnReport.Click

Response.Redirect("reports.aspx")

End Sub

Section of Web Config Code

<authentication mode="Forms">
<forms loginUrl="login.aspx" />
</authentication>
<authorization>
<deny users="?" />
</authorization>

</system.web>

<location path="school.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>

</configuration>
"Scott M." wrote:
We need to see your code.

"Tom Nowak" <To******@discussions.microsoft.com> wrote in message
news:F7**********************************@microsof t.com...
I have written a web app that includes a login page. When a user
successfully logs in, they are taken to the main web app page. I have a button on this page that I want to use to redirect the user to another
page,
but i use a response.redirect statement behind the button, and when
clicking
this, I am taken back to the login page instead of the new page I want to goto. Help!


Nov 18 '05 #4

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

Similar topics

10
by: Bob Garbados | last post by:
forgive my ignorance, as I'm new to php coming from a ms background... If I create a page named redirect.php and it's only content is: <?php header("Location: http://www.google.com"); ?>...
7
by: Donna Hawkins | last post by:
I want to use javascript to redirect to a URL which has been passed as a variable (in php). I have searched but cannot find any solution. I think this code is a basic redirect: <script...
3
by: Justin | last post by:
Hi, Im confused here over the usage of Response.Redirect and Server.Transfer. I used frameset for my work, what are the proper usages of the two methods that seems working similar.. The...
6
by: Sam | last post by:
I have some issues with HTTP Headers and I was hoping for some pointers or references to good articles. Here is the problem. I have 6 .aspx pages, each page contains a common .ascx. This ascx...
13
by: Tim | last post by:
Hello, Is there a way to "cancel" a response.Redirect? For example, in the code below, could I insert anything in the Catch statement that would cancel the redirect and resume flow after the...
4
by: bnob | last post by:
In a Button clik event I have this code at the end of the event Response.Redirect("Page.aspx") But in this event I must show a message before redirect to the Page.aspx. I use to show Message...
5
by: Alan Silver | last post by:
Hello, I have a page that is supposed to do some checking, and if OK, set a session variable before redirecting to another page. The following code is a simplified version, I have hard-coded the...
5
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...
8
by: Darrel | last post by:
I'm helping convert a 300+ page .html site into an ASP.net site. The client wants to set up 301 redirects for all of the old html pages. I've used ISAPI for this type of thing in the past, as it...
1
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.