DISABLE
ALTER TABLE table_name DISABLE TRIGGER tr_name
ENABLEALTER TABLE table_name ENABLE TRIGGER tr_name
world wide web development problems asp net php html xhtml css javascript jquery w3dproblems
DISABLEALTER TABLE table_name DISABLE TRIGGER tr_name
ENABLEALTER TABLE table_name ENABLE TRIGGER tr_name
HttpCookie myCookie = new HttpCookie("MyTestCookie"); DateTime now = DateTime.Now; // Set the cookie value. myCookie.Value = now.ToString(); // Set the cookie expiration date. myCookie.Expires = now.AddYears(50); // For a cookie to effectively never expire // Add the cookie. Response.Cookies.Add(myCookie);
HttpCookie myCookie = Request.Cookies["MyTestCookie"]; // Read the cookie information and display it. if (myCookie != null) Response.Write("<p>" + myCookie.Name + "<p>" + myCookie.Value); else Response.Write("not found");
private static string GetCookie(string name) { return HttpContext.Current.Request != null ? HttpContext.Current.Request.Cookies[name].Value : string.Empty; } private static void SetCookie(string name, string value) { HttpContext.Current.Request.Cookies[name].Value = value; HttpContext.Current.Request.Cookies[name].Expires = DateTime.Now.AddDays(100); }