/// <summary> /// Set onkeypress event for textbox, /// Call this funtion on load update page /// </summary> /// <param name="textBox">Textbox only input number</param> /// <param name="Characters">Skip Characters input</param> public static void OnlyInputNumber(TextBox textBox, string Characters) { StringClass.CreateClientScriptAttributes(textBox, "onkeypress", "OnlyInputNumber('" + Characters + "')", GetScriptValidatorNumber()); }
/// <summary> /// Get cookie name from cookie /// </summary> /// <param name="CookieName"></param> /// <returns></returns> public string GetCookie(string CookieName) { return(StringClass.Check(HttpContext.Current.Request.Cookies[CookieName]) ? HttpContext.Current.Request.Cookies[CookieName].Value : ""); }