473,408 Members | 2,734 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,408 software developers and data experts.

redirecty on unauthorized page?

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
Nov 19 '05 #1
5 2450
Do you want them redirected or do you want them prompted for credentials?

-Brock
DevelopMentor
http://staff.develop.com/ballen
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


Nov 19 '05 #2
aa
can you show both methods. Basicly I need to redirect to page on the same
web site

"Brock Allen" <ba****@develop.com.i_hate_spam_too> wrote in message
news:16*********************@msnews.microsoft.com. ..
Do you want them redirected or do you want them prompted for credentials?

-Brock
DevelopMentor
http://staff.develop.com/ballen
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


Nov 19 '05 #3
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
can you show both methods. Basicly I need to redirect to page on the
same web site

"Brock Allen" <ba****@develop.com.i_hate_spam_too> wrote in message
news:16*********************@msnews.microsoft.com. ..
Do you want them redirected or do you want them prompted for
credentials?

-Brock
DevelopMentor
http://staff.develop.com/ballen
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


Nov 19 '05 #4
aa
OK, but I want that wold be redirected to my page
"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:11**********************@msnews.microsoft.com ...
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
can you show both methods. Basicly I need to redirect to page on the
same web site

"Brock Allen" <ba****@develop.com.i_hate_spam_too> wrote in message
news:16*********************@msnews.microsoft.com. ..
Do you want them redirected or do you want them prompted for
credentials?

-Brock
DevelopMentor
http://staff.develop.com/ballen
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


Nov 19 '05 #5
So you need to use Forms authentication not Windows authentication.

-Brock
DevelopMentor
http://staff.develop.com/ballen
OK, but I want that wold be redirected to my page

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:11**********************@msnews.microsoft.com ...
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
can you show both methods. Basicly I need to redirect to page on the
same web site

"Brock Allen" <ba****@develop.com.i_hate_spam_too> wrote in message
news:16*********************@msnews.microsoft.com. ..

Do you want them redirected or do you want them prompted for
credentials?

-Brock
DevelopMentor
http://staff.develop.com/ballen
> 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
>


Nov 19 '05 #6

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

Similar topics

1
by: Newbie | last post by:
I have set up an ASP script (with some help from microsoft.public.inetserver.asp.general!) that grabs the windows username of the user and puts it into an Access database. It is setup on IIS5 as a...
2
by: Jayakumar | last post by:
Hi, I am trying to convert a word document to pdf file from java for this, I am using a asp file to convert doc file to pdf. I got it working when I put the url which has file name as the query...
0
by: Jason | last post by:
I am trying to retrieve XML data from an ASP page. If I type the URL to the asp page into my browser (i.e. http://domain.com/getxml.asp) , I will get the xml displayed in IE. But, if I try to...
1
by: ag | last post by:
Hi guys.. need your help. We have abc.asp page on the source server which calls a .net component on that server. The component is in MTS running under say "domain2\id1" identity. The component...
1
by: Leonard Danao | last post by:
I get this error when i run my code below "An unhandled exception of type 'System.Net.WebException' occurred in system.dll Additional information: The remote server returned an error: (401)...
0
by: Lloyd Dupont | last post by:
I create a sample test project and it while it works well with IE, when I try to connect to it with Mozilla I get the error page for HTTP 401.2 - Unauthorized: Logon failed due to server...
0
by: Pmcg | last post by:
I would appreciate any help with the following, havn't found any answers for this in my research to date. I am trying to retreive a web page (a htm file intially) from a vdir on an intranet site...
2
by: ALI-R | last post by:
Hi All, I have a webservice on a win 2003 server and I'm trying to call it from another win2003 server which is hosting my sharepoint portal server. I am trying to call that webservice from a...
10
by: Anton | last post by:
Hi, when accessing a secured 3rd party webservice i'm getting a 401 HTTP Statuscode (unauthorized). When entering the url in a browser and entering the username and password manually, the wsdl is...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.