Response.Redirect with IE

S

Sospeter

Hi Ken,

I have done that but still experiencing same problem. Tried the
following i.e. turning smartnavigation = false and using
server.transfer as below but nothing works.

Please help.

Page.SmartNavigation = False
FormsAuthentication.SetAuthCookie(txtCustID.Text, False)
'FormsAuthentication.RedirectFromLoginPage(txtCustID.Text, False)
Server.Transfer("default.aspx")



Add newsgroups to your website just like Developersdex. Click here to
see how.
http://www.automationtools.com





View Message Thread (1 reply)

Results 1 - 2 of 2

Response.Redirect
From: Sospeter
Date Posted: 10/13/2004 8:33:00 PM



Hi,

I have a web application that has a login page. Once a user is
authenticated, he gets redirected from the login page by using
FormsAuthentication.RedirectFromLoginPage(txtCustID.Text, False)

The above and response.redirect isn't working when I use Internet
Explorer.
Works fine with firefox. Anyone know a solution to this.

Cheers,
Sos



Re: Response.Redirect
From: Ken Dopierala Jr.
Date Posted: 10/13/2004 9:13:00 PM



Hi,

Make sure you are allowing cookies with IE. Also check that your
security
settings are the same for each browser. Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

Sospeter said:
Hi,

I have a web application that has a login page. Once a user is
authenticated, he gets redirected from the login page by using
FormsAuthentication.RedirectFromLoginPage(txtCustID.Text, False)

The above and response.redirect isn't working when I use Internet
Explorer.
Works fine with firefox. Anyone know a solution to this.

Cheers,
Sos





Results 1 - 2 of 2
 
J

Joyjit Mukherjee

Hi,

it seems that you are using Forms Authentication and want to redirect from a
login page to another one after a successful login - Am I right ?

In that case, set the Authentication mode to "Forms" in Web.Config, set the
forms authentication attributes (LoginUrl, name etc.), set Authorization
settings, set default.aspx as your start page, and then in your codebehind
do whatsoever mechanisms you want to use to authenticate.

You don't have to manually redirect, Forms Authentication will do it for you
automatically. And finally, smartnavigation is all about maintaining scroll
positions, element focus etc. for IE 5.5 and above browsers.

HTH
Joyjit
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top