redirecty on unauthorized page?

  • Thread starter Thread starter aa
  • Start date Start date
A

aa

I have asp.net web site in which is using windows authentification, and I
want that the User who will not authorized would be redirected to other page
 
can you show both methods. Basicly I need to redirect to page on the same
web site
 
The <authorization> element in both cases controls who's allowed access to
the pages, but the authentication is different for each mode in ASP.NET.
Well, if you're using ASP.NET 1.x and Windows authentication then it's the
browser that prompts for credentials, so there's no page to redirect to.
If you're using Forms authentication then you'll have to build you own login
page. So with the <authorization> the redirect/prompt is done automatically
for you.

-Brock
DevelopMentor
http://staff.develop.com/ballen
 

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

Back
Top