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

ReturnUrl

Hi,

I have three pages. Login page, Default.aspx and admin.aspx. There is link
inDefault.aspx page which redirects to admin.aspx page. But I want the
ReturnURl as "admin.aspx" page and want to save that ReturnURl in Query
string. But when I click on page it simply redirects me to that page but
doesn't show ReturnUrl in the bwoser.
Sep 28 '07 #1
3 3219
Jon
On 28 Sep, 01:50, bobby <bo...@discussions.microsoft.comwrote:
Hi,

I have three pages. Login page, Default.aspx and admin.aspx. There is link
inDefault.aspx page which redirects to admin.aspx page. But I want the
ReturnURl as "admin.aspx" page and want to save that ReturnURl in Query
string. But when I click on page it simply redirects me to that page but
doesn't show ReturnUrl in the bwoser.
Are you using forms authentication and set that all up in the
web.config?

Sep 28 '07 #2
Yes.

"Jon" wrote:
On 28 Sep, 01:50, bobby <bo...@discussions.microsoft.comwrote:
Hi,

I have three pages. Login page, Default.aspx and admin.aspx. There is link
inDefault.aspx page which redirects to admin.aspx page. But I want the
ReturnURl as "admin.aspx" page and want to save that ReturnURl in Query
string. But when I click on page it simply redirects me to that page but
doesn't show ReturnUrl in the bwoser.

Are you using forms authentication and set that all up in the
web.config?

Sep 28 '07 #3
On Sep 28, 2:50 am, bobby <bo...@discussions.microsoft.comwrote:
I have three pages. Login page, Default.aspx and admin.aspx. There is link
inDefault.aspx page which redirects to admin.aspx page. But I want the
ReturnURl as "admin.aspx" page and want to save that ReturnURl in Query
string.
HyperLink1.NavigateUrl ="admin.aspx?ReturnUrl=" +
Server.UrlEncode(HttpContext.Current.Request.RawUr l);

Sep 29 '07 #4

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

Similar topics

2
by: tshad | last post by:
I have a logon page that is may be called by the Forms Authentication setup. This would put a ReturnURL as part of the URL. I would normally then just issue a: ...
1
by: Randall Parker | last post by:
I'm coding up C# CodeBehind source code for a Logon.aspx file. I have a newbie few questions: 1) If a PostBack comes in and you return from it (rather than redirect) then will the original...
4
by: Chicagoboy27 | last post by:
All I am trying to find a solution for removing the ?returnUrl if a user is not authenticated. I want to be redirect an unauthenticated user to the login.aspx less the returnUrl. Once they log...
7
by: vvkl | last post by:
I have readed a example code from MSDN about FormsAuthenticationTicket calss, but there's a line I can't understand : 'strRedirect = Request;' What's the mean in which square brackets? Thank...
0
by: mark4asp | last post by:
The login page is: http://localhost:1086/Client/Default.aspx The default page is: http://localhost:1086/Client/News/News.aspx i.e. I have the following in web.config <authentication...
1
by: mark4asp | last post by:
Ok so my previous message about the vanishing ReturnUrl value was also lost! - grrrr Fate - I'll get my revenge on you - if you think you can toy with me like this! I decided to change the form...
10
by: semomaniz | last post by:
Hello, I have a database interface that needs to have a login authentication set up. SO for this I have a login view inside which i have the login control and i have accomplished the...
0
by: tranky | last post by:
Hi, i've a problem, and i know you can help me to solve it. I'm using Asp Net and Form Authentication. When i'm anonymous and i must show a protected page, i'm redirected into a login.aspx page...
1
by: tranky | last post by:
Hi, i've a problem, and i know you can help me to solve it. I'm using Asp Net and Form Authentication. When i'm anonymous and i must show a protected page, i'm redirected into a login.aspx page...
0
by: tranky | last post by:
Hi, i've a problem, and i know you can help me to solve it. I'm using Asp Net and Form Authentication. When i'm anonymous and i must show a protected page, i'm redirected into a login.aspx page...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.