Click here to Skip to main content
15,073,154 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Hold a page before redirecting it to another one. Pin
Antony M Kancidrowski29-Jul-09 2:20
MemberAntony M Kancidrowski29-Jul-09 2:20 
GeneralRe: Hold a page before redirecting it to another one. Pin
Ersan Ercek29-Jul-09 6:53
MemberErsan Ercek29-Jul-09 6:53 
QuestionUnable to open more that 10 - 12 pages of locally published site Pin
yesu prakash29-Jul-09 0:10
Memberyesu prakash29-Jul-09 0:10 
AnswerRe: Unable to open more that 10 - 12 pages of locally published site Pin
Abhijit Jana29-Jul-09 0:12
professionalAbhijit Jana29-Jul-09 0:12 
GeneralRe: Unable to open more that 10 - 12 pages of locally published site Pin
yesu prakash29-Jul-09 0:23
Memberyesu prakash29-Jul-09 0:23 
AnswerRe: Unable to open more that 10 - 12 pages of locally published site Pin
Antony M Kancidrowski29-Jul-09 0:32
MemberAntony M Kancidrowski29-Jul-09 0:32 
GeneralRe: Unable to open more that 10 - 12 pages of locally published site Pin
yesu prakash29-Jul-09 0:47
Memberyesu prakash29-Jul-09 0:47 
QuestionForms Authentication and using Current User Credentials programmatically Pin
Antony M Kancidrowski28-Jul-09 23:57
MemberAntony M Kancidrowski28-Jul-09 23:57 
Using Forms Authentication and locking down the path so you need to be authenticated to access the pages / data.

I am trying to use the current authenticated user credentials in order to process a web request within the .aspx page that the user has navigated to. Code as below:

HttpWebRequest req = (HttpWebRequest)WebRequest.Create(uri);
req.Credentials = CredentialCache.DefaultCredentials;
        
WebResponse res = req.GetResponse();

NOTE: the uri is valid.

The response is a redirect to the login page (bad credentials redirect to login page) and not the requested data provided by the web request.

I am struggling to find what I need to do in order for this request to be processed as though it was the current authenticated user.

Any advice is most appreciated.
Thanks in advance.
Ant.

Ant.

I'm hard, yet soft.
I'm coloured, yet clear.
I'm fruity and sweet.
I'm jelly, what am I? Muse on it further, I shall return!


- David Walliams (Little Britain)

AnswerRe: Forms Authentication and using Current User Credentials programmatically Pin
Mike Ellison29-Jul-09 2:59
MemberMike Ellison29-Jul-09 2:59 
GeneralRe: Forms Authentication and using Current User Credentials programmatically Pin
Antony M Kancidrowski29-Jul-09 3:37
MemberAntony M Kancidrowski29-Jul-09 3:37 
GeneralRe: Forms Authentication and using Current User Credentials programmatically Pin
Mike Ellison29-Jul-09 5:49
MemberMike Ellison29-Jul-09 5:49 
Question[Message Deleted] Pin
bhavna432128-Jul-09 23:34
Memberbhavna432128-Jul-09 23:34 
AnswerRe: asp.net3.5 Pin
SeMartens28-Jul-09 23:39
MemberSeMartens28-Jul-09 23:39 
GeneralRe: asp.net3.5 Pin
bhavna432129-Jul-09 0:00
Memberbhavna432129-Jul-09 0:00 
GeneralRe: asp.net3.5 Pin
SeMartens29-Jul-09 0:03
MemberSeMartens29-Jul-09 0:03 
AnswerRe: asp.net3.5 Pin
Manas Bhardwaj28-Jul-09 23:51
professionalManas Bhardwaj28-Jul-09 23:51 
QuestionRetrieve Full Name from Active Directory Pin
sheebalam11128-Jul-09 22:17
Membersheebalam11128-Jul-09 22:17 
AnswerRe: Retrieve Full Name from Active Directory Pin
Abhijit Jana28-Jul-09 23:00
professionalAbhijit Jana28-Jul-09 23:00 
GeneralRe: Retrieve Full Name from Active Directory Pin
sheebalam11129-Jul-09 1:35
Membersheebalam11129-Jul-09 1:35 
GeneralRe: Retrieve Full Name from Active Directory Pin
Abhijit Jana29-Jul-09 1:50
professionalAbhijit Jana29-Jul-09 1:50 
QuestionCreate a Floating Form Pin
mehrnoosh28-Jul-09 22:08
Membermehrnoosh28-Jul-09 22:08 
AnswerRe: Create a Floating Form Pin
Christian Graus28-Jul-09 22:14
protectorChristian Graus28-Jul-09 22:14 
GeneralRe: Create a Floating Form Pin
mehrnoosh28-Jul-09 22:50
Membermehrnoosh28-Jul-09 22:50 
AnswerRe: Create a Floating Form Pin
Abhijit Jana28-Jul-09 22:57
professionalAbhijit Jana28-Jul-09 22:57 
Questionperform custom paging in gridview on a button click Pin
smiley_jatin28-Jul-09 22:07
Membersmiley_jatin28-Jul-09 22:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.