/// <summary> /// Creates an accordion control from the given HTML helper object (which can then /// be configured and rendered). H3 is used as the heading tag. /// </summary> /// <param name="page">WebForms page to render the control onto</param> /// <param name="id">ID to give to the accordion (must be unique on the page)</param> /// <returns>Created accoridon control</returns> public static Accordion CreateAccordion(this System.Web.UI.Page page, string id) { return page.CreateAccordion(id, ""/*no heading tag override - H3 is used*/); }
/// <summary> /// Creates an accordion control from the given HTML helper object (which can then /// be configured and rendered). H3 is used as the heading tag. /// </summary> /// <param name="html">Html helper (used to get the HttpResponse object to render onto)</param> /// <param name="id">ID to give to the accordion (must be unique on the page)</param> /// <returns>Created accoridon control</returns> public static Accordion CreateAccordion(this HtmlHelper html, string id) { return html.CreateAccordion(id, ""/*no heading tag override - H3 is used*/); }