Click here to Skip to main content
15,925,528 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Getting changes to the data from a repeater control Pin
Senseicads30-May-07 6:56
Senseicads30-May-07 6:56 
GeneralRe: Getting changes to the data from a repeater control Pin
Fred_Smith30-May-07 7:01
Fred_Smith30-May-07 7:01 
GeneralRe: Getting changes to the data from a repeater control Pin
Senseicads30-May-07 7:12
Senseicads30-May-07 7:12 
QuestionError: There is no source code available for the current location Pin
Sam.M30-May-07 2:28
Sam.M30-May-07 2:28 
AnswerRe: Error: There is no source code available for the current location Pin
marky77730-May-07 4:30
marky77730-May-07 4:30 
QuestionHow can current Session can be sent with the WebRequest! Pin
Rana Muhammad Javed Khan30-May-07 2:23
Rana Muhammad Javed Khan30-May-07 2:23 
AnswerRe: How can current Session can be sent with the WebRequest! Pin
Fred_Smith30-May-07 4:47
Fred_Smith30-May-07 4:47 
GeneralRe: How can current Session can be sent with the WebRequest! Pin
Rana Muhammad Javed Khan30-May-07 6:43
Rana Muhammad Javed Khan30-May-07 6:43 
GeneralRe: How can current Session can be sent with the WebRequest! Pin
Fred_Smith30-May-07 6:59
Fred_Smith30-May-07 6:59 
GeneralRe: How can current Session can be sent with the WebRequest! Pin
Rana Muhammad Javed Khan30-May-07 9:14
Rana Muhammad Javed Khan30-May-07 9:14 
GeneralRe: How can current Session can be sent with the WebRequest! Pin
Fred_Smith30-May-07 13:42
Fred_Smith30-May-07 13:42 
QuestionPrinting problem Pin
umashankergr830-May-07 1:59
umashankergr830-May-07 1:59 
AnswerRe: Printing problem Pin
kubben30-May-07 5:13
kubben30-May-07 5:13 
GeneralRe: Printing problem Pin
umashankergr830-May-07 6:52
umashankergr830-May-07 6:52 
GeneralRe: Printing problem Pin
kubben30-May-07 7:39
kubben30-May-07 7:39 
GeneralRe: Printing problem Pin
umashankergr830-May-07 8:01
umashankergr830-May-07 8:01 
GeneralRe: Printing problem Pin
kubben30-May-07 8:04
kubben30-May-07 8:04 
QuestionHow to implement remember me next time feature Pin
deepalititi30-May-07 1:53
deepalititi30-May-07 1:53 
AnswerRe: How to implement remember me next time feature Pin
nareshss30-May-07 2:02
nareshss30-May-07 2:02 
Login Control: builtin control for user autentication in it there is two textboxes(UserName and Password) and one CheckBox("Remember me next time") and a button(Login).

the Remember me next time check box is not working bydefault. i m doing that in my way below is the code for Working "Remember me next time" checkbox.

first we have to put login control on page like below

<asp:login id="Login1" runat="server" onloggedin="Login1_LoggedIN">

then do this code on Login1_LoggedIN Event like below
protected void Login1_LoggedIN(object sender, EventArgs e)

{

CheckBox rm = (CheckBox)Login1.FindControl("RememberMe");

if (rm.Checked)

{

HttpCookie myCookie = new HttpCookie("myCookie");

Response.Cookies.Remove("myCookie");

Response.Cookies.Add(myCookie);

myCookie.Values.Add("Email", this.Login1.UserName.ToString());

myCookie.Values.Add("Pass", this.Login1.Password.ToString());

DateTime dtExpiry = DateTime.Now.AddDays(15); //you can add years and months too here

Response.Cookies["myCookie"].Expires = dtExpiry;

}

}

and then do this code on Page_Load Event
protected void Page_Load(object sender, EventArgs e)

{

if (!IsPostBack)

{


if (Request.Cookies["myCookie"] != null)

{

HttpCookie cookie = Request.Cookies.Get("myCookie");

string emailID = cookie.Values["Email"].ToString();

string password = cookie.Values["Pass"].ToString();

if (Membership.ValidateUser(emailID, password))

{

FormsAuthentication.RedirectFromLoginPage(emailID, true);

}

}

}



}




think its useful for u
i find this code from codeproject only......
bye
naresh.s.s
GeneralRe: How to implement remember me next time feature Pin
deepalititi30-May-07 2:31
deepalititi30-May-07 2:31 
GeneralRe: How to implement remember me next time feature Pin
Not Active30-May-07 3:25
mentorNot Active30-May-07 3:25 
GeneralRe: How to implement remember me next time feature Pin
deepalititi30-May-07 18:47
deepalititi30-May-07 18:47 
GeneralRe: How to implement remember me next time feature Pin
deepalititi31-May-07 18:59
deepalititi31-May-07 18:59 
AnswerRe: How to implement remember me next time feature Pin
Sathesh Sakthivel30-May-07 2:06
Sathesh Sakthivel30-May-07 2:06 
QuestionImage Swaping. Pin
Khan.Bangash30-May-07 1:16
Khan.Bangash30-May-07 1:16 

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.