Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP Homework NET
Please give your valuable suggestions&answers and
 
thanks for responses.
Posted 28-Aug-12 20:02pm
Edited 28-Aug-12 20:15pm
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  
Comments
Nithin Sundar at 29-Aug-12 2:16am
   
He's posting too many questions like this. Instead he could have googled or atleast made a simple effort to enter all questions into one.
Sandeep Mewara at 29-Aug-12 2:20am
   
Yeah, suggested/told him when I saw the third one! Googled and gave links to state management techniques.
Here: http://www.codeproject.com/Answers/448930/What-is-ViewState-and-give-an-examples
aspnet_regiis at 29-Aug-12 2:25am
   
I think he has misunderstood codeproject as a free online software training/coaching centre, He is posting all the questions in the format - What is ****** and give examples...
Sandeep Mewara at 29-Aug-12 2:50am
   
Yep!
Mohamed Mitwalli at 29-Aug-12 3:49am
   
5+
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Hi ,
Cookies a piece of data stored in the user's browser it can use on store Username & Password so user do not have to re-login to your website every time they visit , Cookies can keep information in the user's browser until deleted or Expired
Defaul1.aspx
protected void Button1_Click(object sender, EventArgs e)
{
    HttpCookie Cookies = new HttpCookie("UserName");
    Cookies.Value = "your value";
    Cookies.Expires = DateTime.Now.AddMinutes(3);
    Response.Cookies.Add(Cookies);
    Response.Redirect("Default3.aspx");
}
Default3.aspx
protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        HttpCookie cookie = Request.Cookies["UserName"];
        if (cookie !=null)
        {
            Label1.Text = cookie.Value;
        }
    }
}
 
http://www.aspnettutorials.com/tutorials/network/cookies-csharp.aspx[^]
Cookies in ASP.NET[^]
all thing about cookies in asp.net c#[^]
http://msdn.microsoft.com/en-us/library/ms178194.aspx[^]
Best Regards
M.Mitwalli
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

  Permalink  
Comments
Mohamed Mitwalli at 29-Aug-12 3:48am
   
5+
Prasad_Kulkarni at 29-Aug-12 5:00am
   
Thank you Mohamed!
Manas Bhardwaj at 30-Aug-12 14:13pm
   
yup 5
Prasad_Kulkarni at 30-Aug-12 23:53pm
   
:) Thank you Manas!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web04 | 2.8.140709.1 | Last Updated 29 Aug 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid