Q: Reponse.Redirect

G

Guest

Hello,
In my login screen I validate user against SQL table and call my main page
with Reponse.Redirect("myPage.aspx"); I see my application comes there but
does not switch to myPage.aspx, I used try catch, I see “Thread was being
aborted†error message, I know myPage.aspx is there because my old code
works, my login screen modification somehow created problem. Any Idea?
Thanks,
 
K

Kevin Spencer

Try -

Response.Redirect("myPage.aspx", false);

This tells the app not to call Response.End after redirecting.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.
 

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,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top