Click here to Skip to main content
15,895,142 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Different between (!Page.IsPostBack) and (!IsPostBack) ? Pin
szukuro12-Jun-07 22:01
szukuro12-Jun-07 22:01 
Questionhow to create nested data grid Pin
Sophia Rekhi12-Jun-07 19:20
Sophia Rekhi12-Jun-07 19:20 
AnswerRe: how to create nested data grid Pin
Sathesh Sakthivel12-Jun-07 19:25
Sathesh Sakthivel12-Jun-07 19:25 
AnswerRe: how to create nested data grid Pin
chand1012-Jun-07 20:09
chand1012-Jun-07 20:09 
GeneralRe: how to create nested data grid Pin
Sophia Rekhi13-Jun-07 1:06
Sophia Rekhi13-Jun-07 1:06 
Questionremember me Pin
jai 12312-Jun-07 19:16
jai 12312-Jun-07 19:16 
AnswerRe: remember me Pin
Sathesh Sakthivel12-Jun-07 19:22
Sathesh Sakthivel12-Jun-07 19:22 
AnswerRe: remember me Pin
kumarjammula12-Jun-07 23:16
kumarjammula12-Jun-07 23:16 
Take a checkbox in the login page i had used Logincontrol of asp.net2.0

CheckBox chkBox = (CheckBox)Login1.FindControl("RememberMe");
if (chkBox.Checked==true)
{
HttpCookie myCookie = new HttpCookie("myCookie"); //Instance the new cookie
Response.Cookies.Remove("myCookie"); //Remove previous cookie
Response.Cookies.Add(myCookie); //Create the new cookie
myCookie.Values.Add("user", this.Login1.UserName); //Add the username field to the cookie
DateTime deathDate = DateTime.Now.AddDays(1); //Days of life
Response.Cookies["myCookie"].Expires = deathDate; //Assign the life period

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

}

Getting after Cookie created u write the code in page load event....

if (Request.Cookies["myCookie"] != null) //Cookie Exists??
{
HttpCookie cookie = Request.Cookies.Get("myCookie");
string user = cookie.Values["user"].ToString();
if (user != "")
{
Login1.UserName = user; //Write the username onto login username textbox
}
}

came out of hardwork

Question'Browse' button Pin
gauthee12-Jun-07 19:11
gauthee12-Jun-07 19:11 
AnswerRe: 'Browse' button Pin
_AK_12-Jun-07 20:40
_AK_12-Jun-07 20:40 
QuestionWebParts Pin
Neema Vikas12-Jun-07 19:08
Neema Vikas12-Jun-07 19:08 
AnswerRe: WebParts Pin
Sathesh Sakthivel12-Jun-07 19:11
Sathesh Sakthivel12-Jun-07 19:11 
QuestionAutometic software updation process Pin
Elena200612-Jun-07 19:03
Elena200612-Jun-07 19:03 
AnswerRe: Autometic software updation process Pin
Sylvester george12-Jun-07 19:27
Sylvester george12-Jun-07 19:27 
QuestionRemember me on computer Pin
saravanan0512-Jun-07 18:47
saravanan0512-Jun-07 18:47 
AnswerRe: Remember me on computer Pin
Sathesh Sakthivel12-Jun-07 18:54
Sathesh Sakthivel12-Jun-07 18:54 
Questionanybody is here Pin
Raghvendra Kumar Roy12-Jun-07 18:44
Raghvendra Kumar Roy12-Jun-07 18:44 
AnswerRe: anybody is here Pin
Christian Graus12-Jun-07 18:45
protectorChristian Graus12-Jun-07 18:45 
GeneralRe: anybody is here Pin
Raghvendra Kumar Roy12-Jun-07 18:47
Raghvendra Kumar Roy12-Jun-07 18:47 
GeneralRe: anybody is here Pin
Sathesh Sakthivel12-Jun-07 18:51
Sathesh Sakthivel12-Jun-07 18:51 
GeneralRe: anybody is here Pin
_AK_12-Jun-07 20:24
_AK_12-Jun-07 20:24 
AnswerRe: anybody is here Pin
Sylvester george12-Jun-07 18:55
Sylvester george12-Jun-07 18:55 
QuestionHTTP Hdlers Pin
Kanjinghat12-Jun-07 18:29
Kanjinghat12-Jun-07 18:29 
AnswerRe: HTTP Hdlers Pin
Sathesh Sakthivel12-Jun-07 18:31
Sathesh Sakthivel12-Jun-07 18:31 
Questionhow to upload files from client file with out htmlinput file Pin
Vinod vbv12-Jun-07 18:24
Vinod vbv12-Jun-07 18:24 

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.