Monday, January 28, 2013

How to delete cookies in ASP.NET?

In fact, delete mean "expire"

if (Request.Cookies["UserSettings"] != null)
{
    HttpCookie myCookie = new HttpCookie("UserSettings");
    myCookie.Expires = DateTime.Now.AddDays(-1d);
    Response.Cookies.Add(myCookie);
}

iPhone 4 simulator

http://iphone4simulator.com/

ASP.NET Image Control With Fallback URL

http://weblogs.asp.net/ricardoperes/archive/2013/01/23/asp-net-image-control-with-fallback-url.aspx