Click here to Skip to main content
15,904,156 members
Home / Discussions / C#
   

C#

 
GeneralRe: operating system Pin
Colin Angus Mackay10-Feb-07 0:25
Colin Angus Mackay10-Feb-07 0:25 
GeneralRe: operating system Pin
Dave Kreskowiak10-Feb-07 4:04
mveDave Kreskowiak10-Feb-07 4:04 
QuestionDifferent speeds using Pointers Pin
AlexZieg719-Feb-07 21:09
AlexZieg719-Feb-07 21:09 
QuestionMethods and Calling Methods Pin
JMOdom9-Feb-07 20:33
JMOdom9-Feb-07 20:33 
AnswerRe: Methods and Calling Methods Pin
Christian Graus9-Feb-07 21:00
protectorChristian Graus9-Feb-07 21:00 
GeneralRe: Methods and Calling Methods Pin
chris.hagelstein5-Apr-10 8:07
chris.hagelstein5-Apr-10 8:07 
QuestionAccessing dbf database tables instead of database Pin
kalyan_24169-Feb-07 19:36
kalyan_24169-Feb-07 19:36 
QuestionResponse.Redirect Failedon login Pin
dabuskol9-Feb-07 18:14
dabuskol9-Feb-07 18:14 
Hi,

I hav a login page in my solution VS2005. If the user exist then it redirects it to my default.aspx page, if the userid or password is incorrect it display the error message, but after typing the correct info. of the user it does authenticate and authorized the user but it doesnt redirect you to the default.aspx page it will will just redirect you to the login.aspx displaying the userid that it is already authorized. Can somebody help me?

My solution: Login1.FailureAction = "Refresh" when I tried to swith it to Login1.FailuerAction = "RedirectToLoginPage" still the same problem. Could it be that I missed some codes coz everything in login page is working fine.


 <br />
if (bUserExists)<br />
{<br />
   string sroles = GetUserRole(Login1.UserName);<br />
   FormsAuthenticationTicket Ticket = new FormsAuthenticationTicket(1,  Login1.UserName, DateTime.Now, DateTime.Now.AddMinutes(30), false, "Director", FormsAuthentication.FormsCookiePath);<br />
    Response.Cookies.Add(new HttpCookie(FormsAuthentication.FormsCookieName, FormsAuthentication.Encrypt(Ticket)));<br />
    Response.Redirect(FormsAuthentication.GetRedirectUrl(Login1.UserName, bIsPersistentChecked));<br />
}<br />
else<br />
{<br />
    Login1.FailureText = "User Name / Password is not correct. please try again.";<br />
}




Dabsukol

QuestionException has been thrown by the target of an invocation Pin
Kasic Slobodan9-Feb-07 16:44
Kasic Slobodan9-Feb-07 16:44 
AnswerRe: Exception has been thrown by the target of an invocation Pin
Stefan Troschuetz9-Feb-07 21:35
Stefan Troschuetz9-Feb-07 21:35 
GeneralRe: Exception has been thrown by the target of an invocation Pin
Kasic Slobodan11-Feb-07 5:30
Kasic Slobodan11-Feb-07 5:30 
QuestionHow do I Index into a grid view while typing string? Pin
Edwin Smith9-Feb-07 16:12
Edwin Smith9-Feb-07 16:12 
QuestionGripStyle Pin
max292979-Feb-07 15:32
max292979-Feb-07 15:32 
AnswerRe: GripStyle Pin
PIEBALDconsult9-Feb-07 17:00
mvePIEBALDconsult9-Feb-07 17:00 
QuestionMore Options on a ToolStrip Pin
max292979-Feb-07 15:29
max292979-Feb-07 15:29 
QuestionCan I create a personalized window? Pin
Khoramdin9-Feb-07 15:06
Khoramdin9-Feb-07 15:06 
AnswerRe: Can I create a personalized window? Pin
PIEBALDconsult9-Feb-07 17:02
mvePIEBALDconsult9-Feb-07 17:02 
QuestionRe: Can I create a personalized window? Pin
Khoramdin9-Feb-07 22:00
Khoramdin9-Feb-07 22:00 
QuestioncurrentMotion[0]["MeetingDateProp"].ToString("MMM dd, yyyy") Pin
Glen Harvy9-Feb-07 12:06
Glen Harvy9-Feb-07 12:06 
AnswerRe: currentMotion[0]["MeetingDateProp"].ToString("MMM dd, yyyy") Pin
Christian Graus9-Feb-07 12:12
protectorChristian Graus9-Feb-07 12:12 
GeneralRe: currentMotion[0]["MeetingDateProp"].ToString("MMM dd, yyyy") Pin
Glen Harvy9-Feb-07 14:26
Glen Harvy9-Feb-07 14:26 
AnswerRe: currentMotion[0]["MeetingDateProp"].ToString("MMM dd, yyyy") Pin
Ed.Poore9-Feb-07 12:42
Ed.Poore9-Feb-07 12:42 
GeneralRe: currentMotion[0]["MeetingDateProp"].ToString("MMM dd, yyyy") Pin
Glen Harvy9-Feb-07 14:28
Glen Harvy9-Feb-07 14:28 
GeneralRe: currentMotion[0]["MeetingDateProp"].ToString("MMM dd, yyyy") Pin
Ed.Poore9-Feb-07 15:01
Ed.Poore9-Feb-07 15:01 
Question.NET memory limitations Pin
Todd Smith9-Feb-07 11:38
Todd Smith9-Feb-07 11:38 

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.