Click here to Skip to main content
11,438,226 members (77,831 online)
   

ASP.NET

 
GeneralRe: Display image using handler.ashx what wrong my code Pin
Michael51191-Feb-13 8:03
memberMichael51191-Feb-13 8:03 
GeneralRe: Display image using handler.ashx what wrong my code Pin
Richard Deeming1-Feb-13 9:12
memberRichard Deeming1-Feb-13 9:12 
GeneralRe: Display image using handler.ashx what wrong my code Pin
Michael51198-Feb-13 21:10
memberMichael51198-Feb-13 21:10 
GeneralRe: Display image using handler.ashx what wrong my code Pin
Richard Deeming11-Feb-13 2:29
memberRichard Deeming11-Feb-13 2:29 
QuestionImagesIn Gridview Pin
Member 941611331-Jan-13 21:13
memberMember 941611331-Jan-13 21:13 
QuestionImporting Excel into Gridview, doesn't import all rows Pin
Craist31-Jan-13 9:29
memberCraist31-Jan-13 9:29 
AnswerRe: Importing Excel into Gridview, doesn't import all rows Pin
Craist31-Jan-13 10:22
memberCraist31-Jan-13 10:22 
QuestionWeb Pages Authentication Pin
Jassim Rahma30-Jan-13 22:22
memberJassim Rahma30-Jan-13 22:22 
Hi,

I have a website mydomain.com and I have few pages under this domains requires authentication which are the member's area pages but NOT all pages under this domains needs authentication.

I added the following to web.config:

<authentication mode="None">
  <forms loginUrl="~/Signin" timeout="2880" />
</authentication>

then in the signin page, i added this:

FormsAuthentication.Authenticate(txtEmailAddress.Text.Trim(), txtPassword.Text);

and the following in the pages where I need it to be authenticated:

if (!HttpContext.Current.User.Identity.IsAuthenticated) FormsAuthentication.RedirectToLoginPage();

when I sign it should go to the home.aspx page where I placed the IsAutehnicated but it's going back to the sign page? why is this?



Regards,
Jassim


Technology News @ www.JassimRahma.com

AnswerRe: Web Pages Authentication Pin
Rahul Rajat Singh30-Jan-13 23:14
mvpRahul Rajat Singh30-Jan-13 23:14 
QuestionAuthentication with database MVC4 Pin
AghaKhan30-Jan-13 21:44
memberAghaKhan30-Jan-13 21:44 
QuestionAutocomplete List hides behind Grid's horizontal scrollbar Pin
Ponka_developer30-Jan-13 13:01
memberPonka_developer30-Jan-13 13:01 
AnswerRe: Autocomplete List hides behind Grid's horizontal scrollbar Pin
jkirkerx30-Jan-13 13:50
memberjkirkerx30-Jan-13 13:50 
QuestionMVC 4 & jquery [modified] Pin
Collin Jasnoch29-Jan-13 5:39
memberCollin Jasnoch29-Jan-13 5:39 
QuestionHow to create and get the user input in alert message in asp.net webservice Pin
Rocky2327-Jan-13 23:22
memberRocky2327-Jan-13 23:22 
AnswerRe: How to create and get the user input in alert message in asp.net webservice Pin
Sandeep Mewara28-Jan-13 0:28
mvpSandeep Mewara28-Jan-13 0:28 
AnswerRe: How to create and get the user input in alert message in asp.net webservice Pin
Ali Al Omairi(Abu AlHassan)28-Jan-13 4:41
memberAli Al Omairi(Abu AlHassan)28-Jan-13 4:41 
GeneralRe: How to create and get the user input in alert message in asp.net webservice Pin
Rocky2328-Jan-13 23:13
memberRocky2328-Jan-13 23:13 
GeneralRe: How to create and get the user input in alert message in asp.net webservice Pin
Ali Al Omairi(Abu AlHassan)28-Jan-13 23:54
memberAli Al Omairi(Abu AlHassan)28-Jan-13 23:54 
AnswerRe: How to create and get the user input in alert message in asp.net webservice Pin
jkirkerx30-Jan-13 13:52
memberjkirkerx30-Jan-13 13:52 
QuestionChange CSS dynamically using javaScript [modified] Pin
sonusharma6527-Jan-13 22:36
membersonusharma6527-Jan-13 22:36 
AnswerRe: Change CSS dynamically using javaScript Pin
Sandeep Mewara28-Jan-13 0:24
mvpSandeep Mewara28-Jan-13 0:24 
Questioncapture the signature from signature pad in Web App. Pin
premaa_36@yahoo.co.in27-Jan-13 21:40
memberpremaa_36@yahoo.co.in27-Jan-13 21:40 
AnswerRe: capture the signature from signature pad in Web App. Pin
Sandeep Mewara27-Jan-13 22:08
mvpSandeep Mewara27-Jan-13 22:08 
GeneralRe: capture the signature from signature pad in Web App. Pin
Abhishek Pant27-Jan-13 22:53
memberAbhishek Pant27-Jan-13 22:53 
Questionlogin object in asp.net Pin
Luqman Inam25-Jan-13 1:52
memberLuqman Inam25-Jan-13 1:52 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.150506.1 | Last Updated 7 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid