public static string GeneralDetailUrl(string prefix, string group_name, string id, string pro_name) { string strUrl = string.Empty; strUrl = "/" + prefix + "/" + StringClass.NameToTag(group_name) + "/" + id + "/" + StringClass.NameToTag(pro_name); return(strUrl); }
/// <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 : ""); }