Click here to Skip to main content
15,889,901 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionWork on disscussion Board? Pin
Mian Awais M asood31-Jan-08 14:22
Mian Awais M asood31-Jan-08 14:22 
QuestionHow do I deal with No default member found for type "GridView" Pin
bamagrad31-Jan-08 13:18
bamagrad31-Jan-08 13:18 
GeneralDataGrid Updating Event prob when AutoGenerateEditButton used... Pin
Supriya Tonape31-Jan-08 10:44
Supriya Tonape31-Jan-08 10:44 
GeneralVIsual studio Pin
kibromg31-Jan-08 9:09
kibromg31-Jan-08 9:09 
GeneralRe: VIsual studio [modified] Pin
Venkatesh Mookkan31-Jan-08 18:37
Venkatesh Mookkan31-Jan-08 18:37 
GeneralRe: VIsual studio Pin
dilipv8-Feb-08 1:09
dilipv8-Feb-08 1:09 
GeneralGridView that extends a class that has gridview common functions. Pin
Martin_31-Jan-08 7:45
Martin_31-Jan-08 7:45 
GeneralPersisitent authentication Pin
#realJSOP31-Jan-08 6:33
mve#realJSOP31-Jan-08 6:33 
I'm using forms authentication on my site, and I want the login to be persistent (saved in a cookie?) for a number of days so that the user doesn't have to login each time he visits. Here's the code I use on my login page:

if (membership.ValidateUser(this.username.Text, this.password.Text))
{
    FormsAuthentication.Initialize();
    DateTime dtNow = DateTime.Now;
    FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(1, this.username.Text, dtNow, dtNow.AddMinutes(30), true, "user", FormsAuthentication.FormsCookiePath);
    string encryptedTicket = FormsAuthentication.Encrypt(ticket);
    Response.Cookies.Add(new HttpCookie(FormsAuthentication.FormsCookieName, encryptedTicket));
    Response.Redirect(FormsAuthentication.GetRedirectUrl(this.username.Text, true));
}


What am I doing wrong (or what am I missing)?


"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


GeneralRe: Persisitent authentication Pin
Fred_Smith31-Jan-08 10:37
Fred_Smith31-Jan-08 10:37 
GeneralData Grid Pin
kibromg31-Jan-08 5:20
kibromg31-Jan-08 5:20 
AnswerRe: Data Grid Pin
newc131-Jan-08 5:33
newc131-Jan-08 5:33 
GeneralRe: Data Grid Pin
kibromg31-Jan-08 5:52
kibromg31-Jan-08 5:52 
GeneralRe: Data Grid Pin
kibromg31-Jan-08 6:48
kibromg31-Jan-08 6:48 
Generalproblem with customErrors tag Pin
Member 468659031-Jan-08 4:06
Member 468659031-Jan-08 4:06 
GeneralRe: problem with customErrors tag Pin
newc131-Jan-08 4:59
newc131-Jan-08 4:59 
GeneralRe: problem with customErrors tag Pin
Member 468659031-Jan-08 20:59
Member 468659031-Jan-08 20:59 
Questionhow to call two javascript methods for the same onclient click event Pin
jagan12331-Jan-08 3:42
jagan12331-Jan-08 3:42 
AnswerRe: how to call two javascript methods for the same onclient click event Pin
Arun Jacob31-Jan-08 4:31
Arun Jacob31-Jan-08 4:31 
GeneralRe: how to call two javascript methods for the same onclient click event Pin
Not Active31-Jan-08 5:08
mentorNot Active31-Jan-08 5:08 
AnswerRe: how to call two javascript methods for the same onclient click event Pin
J4amieC31-Jan-08 5:08
J4amieC31-Jan-08 5:08 
GeneralRe: how to call two javascript methods for the same onclient click event Pin
dilipv3-Feb-08 18:55
dilipv3-Feb-08 18:55 
GeneralRe: how to call two javascript methods for the same onclient click event Pin
J4amieC4-Feb-08 21:34
J4amieC4-Feb-08 21:34 
GeneralWrapping up the words in Grid Pin
John.L.Ponratnam31-Jan-08 1:34
John.L.Ponratnam31-Jan-08 1:34 
AnswerRe: Wrapping up the words in Grid Pin
Arun Jacob31-Jan-08 5:45
Arun Jacob31-Jan-08 5:45 
GeneralstatusCode for Session expired(Custom error Messeges). Pin
adilkazmi31-Jan-08 0:53
adilkazmi31-Jan-08 0:53 

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.