Click here to Skip to main content
15,900,589 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to stop server side event firing based on client side event Pin
here2learn13-Aug-07 23:13
here2learn13-Aug-07 23:13 
GeneralRe: How to stop server side event firing based on client side event Pin
N a v a n e e t h14-Aug-07 0:00
N a v a n e e t h14-Aug-07 0:00 
GeneralRe: How to stop server side event firing based on client side event Pin
here2learn14-Aug-07 0:10
here2learn14-Aug-07 0:10 
GeneralRe: How to stop server side event firing based on client side event Pin
here2learn13-Aug-07 23:21
here2learn13-Aug-07 23:21 
AnswerRe: How do you dynamicly asign html atributes in C#? Pin
N a v a n e e t h13-Aug-07 21:32
N a v a n e e t h13-Aug-07 21:32 
GeneralRe: How do you dynamicly asign html atributes in C#? Pin
N a v a n e e t h13-Aug-07 22:16
N a v a n e e t h13-Aug-07 22:16 
QuestionFull Text Searching ASP Parameters Pin
Brendan Vogt13-Aug-07 21:01
Brendan Vogt13-Aug-07 21:01 
QuestionRemember Me Next Time Pin
Chinnis13-Aug-07 20:57
Chinnis13-Aug-07 20:57 
I tested the default functionality of 'Remember Me Next Time' option in login control.
Once if u logged into the app by checking 'Remember Me Next Time' Checkbox, Next time It is working in such a way that it bypasses the authentication. It means when u try to browse same app it will not prompt for user credentials and directly redirecting the user to specific page.

But i want this functionality in such a way that it should show the login page with with login control filled with username and password

can anybody plz let me the solution.
i wrote the code like this

In LoggedIn Event:

CheckBox rm = (CheckBox)Login1.FindControl("RememberMe");
if (rm.Checked)
{
HttpCookie RemMe = new HttpCookie("RemMe");
Response.Cookies.Remove("RemMe");
Response.Cookies.Add(RemMe);
RemMe.Values.Add("UName", this.Login1.UserName.ToString());
RemMe.Values.Add("Pass", this.Login1.Password.ToString());
DateTime dtExpiry = DateTime.Now.AddDays(15);
Response.Cookies["RemMe"].Expires = dtExpiry;

}

and

In PageLoad Event

if (Request.Cookies["RemMe"] != null)
{
HttpCookie RemMe = Request.Cookies.Get("RemMe");
string UName = RemMe.Values["UName"].ToString();
string password = RemMe.Values["Pass"].ToString();
TextBox txtUname = (TextBox)Login1.FindControl("UserName");
TextBox txtPwd = (TextBox)Login1.FindControl("Password");
txtUname.Text = UName;// it is filling the username in username textbox
txtPwd.Text = password;//it is not filling the password in password textbox
}

thank u
cnu
Questionp3p policy for a website Pin
rama charan13-Aug-07 20:41
rama charan13-Aug-07 20:41 
Questionvalidation expression + asp.net2.0 Pin
ritu432113-Aug-07 20:40
ritu432113-Aug-07 20:40 
AnswerRe: validation expression + asp.net2.0 Pin
N a v a n e e t h13-Aug-07 22:27
N a v a n e e t h13-Aug-07 22:27 
GeneralRe: validation expression + asp.net2.0 [modified] Pin
ritu432114-Aug-07 0:12
ritu432114-Aug-07 0:12 
GeneralRe: validation expression + asp.net2.0 Pin
ritu432114-Aug-07 2:29
ritu432114-Aug-07 2:29 
Questionmpr.lib Pin
Azghar Hussain13-Aug-07 20:23
professionalAzghar Hussain13-Aug-07 20:23 
AnswerRe: mpr.lib Pin
Christian Graus13-Aug-07 20:35
protectorChristian Graus13-Aug-07 20:35 
GeneralRe: mpr.lib Pin
Michael Sync13-Aug-07 21:14
Michael Sync13-Aug-07 21:14 
GeneralRe: mpr.lib Pin
Christian Graus13-Aug-07 23:23
protectorChristian Graus13-Aug-07 23:23 
Questionneed validation expression string Pin
Imran Khan Pathan13-Aug-07 20:11
Imran Khan Pathan13-Aug-07 20:11 
AnswerRe: need validation expression string Pin
N a v a n e e t h13-Aug-07 20:33
N a v a n e e t h13-Aug-07 20:33 
GeneralRe: need validation expression string Pin
Imran Khan Pathan13-Aug-07 20:40
Imran Khan Pathan13-Aug-07 20:40 
GeneralRe: need validation expression string Pin
N a v a n e e t h13-Aug-07 21:07
N a v a n e e t h13-Aug-07 21:07 
GeneralRe: need validation expression string Pin
Imran Khan Pathan13-Aug-07 21:13
Imran Khan Pathan13-Aug-07 21:13 
GeneralRe: need validation expression string Pin
N a v a n e e t h13-Aug-07 21:29
N a v a n e e t h13-Aug-07 21:29 
Questionproblem in remotin plz help Pin
Piyush Vardhan Singh13-Aug-07 19:57
Piyush Vardhan Singh13-Aug-07 19:57 
AnswerRe: problem in remotin plz help Pin
Talal Sultan13-Aug-07 21:47
Talal Sultan13-Aug-07 21:47 

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.