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

FormsAuthentication.RedirectFromLoginPage Leaving Part of the QueryString In HTML Output

I have an aspx form using:

FormsAuthentication.RedirectFromLoginPage("LoginNa me", False) When the
form is browsed to for the VERY first time, instead of redirecting the
user to the original URL, the last bit of the query string string
appears at the top of the login page along with:
here.


i.e. If my user is
localhost/myloginpage/myloginpage.aspx??APP=ThisApp&RAMBLINGS=
dsajfklasdjfkasdhfjkasdhfjklhasdjkfhjsdafadsjfklsd ;ajfklasdjfklasdjfkljasdkl;fjkasdl;jfklasdjfklsdaj fklasdjfklasdjfklasdjfklsdjaklfjsdaklfj;fjklasdjk; jklasdjfklasdjfklasdjfkladjsk;Effffffdsar

The following will appear at the top of my login page (SOURCE) when
redirect is called:
lasdjfklasdjfkladjsk;Effffffdsar'>here</a>.</h2>
</body></html>
---The rest of my login page-----

The piece visible in the browser winder is:

asdjfklasdjfkladjsk;Effffffdsar'>here.

If I go back to the page or refresh everything works fine. What is
happening?

Thanks,
Ryan

Dec 1 '05 #1
0 1215

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

Similar topics

1
by: Eric Broers | last post by:
LS, suppose I have a page with frames. The top frame contains a login buttin, which loads a login page in another frame. After succesfully logging on, I want to go back to the exact point just...
1
by: Bryan | last post by:
Hi, here's my cod If AuthorizeUser(txtUsername.Text, txtPassword.Text) The If Request.QueryString("ReturnURL") > "" The FormsAuthentication.RedirectFromLoginPage(txtUsername.Text, False Els...
2
by: Ben Fidge | last post by:
Is FormsAuthentication.RedirectFromLoginPage the only way to populate the HttpContext.Current.User.Identity.Name property? A base class for each page contains the follwoing property: public...
3
by: Phil Certain | last post by:
Hi I'm building a site that has publicly available pages and password protected pages. Publicly available pages reside in: /public and password protected pages reside in: /private
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: ...
2
by: Grant Merwitz | last post by:
Hi, i am using forms authentication in an ASP.NET project I am setting the Forms authentication cookie by using: FormsAuthentication.RedirectFromLoginPage(UserName.Text, false); Now when i...
1
by: Dean R. Henderson | last post by:
I setup FormsAuthentication on a couple websites where it has been working as expected for a long time. I used this code to setup the same type of authentication on a new website I am working on...
1
by: Jeremy Chapman | last post by:
I have built a web app. While testing I have found that if I browse to a page in the app, then get redirected to the login page and enter my credentials. The...
2
by: rn5a | last post by:
A web.config file has the following code: <configuration> <system.web> <authentication mode="Forms"> <forms name="NETConnectCookie" loginUrl="Login.aspx"> <credentials passwordFormat="SHA1"/>...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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: 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.