Class CPHtml5BaseClass
- Namespace
- Contensive.BaseClasses
- Assembly
- CPBase.dll
public abstract class CPHtml5BaseClass
- Inheritance
-
CPHtml5BaseClass
- Inherited Members
Methods
A(string, HtmlAttributesA)
Anchore tag
public abstract string A(string innerHtml, HtmlAttributesA attributes)
Parameters
innerHtmlstringattributesHtmlAttributesA
Returns
AdminHint(string)
Return an html hint message styled for the admin site.
public abstract string AdminHint(string innerHtml)
Parameters
innerHtmlstring
Returns
Button(string)
public abstract string Button(string htmlName)
Parameters
htmlNamestring
Returns
Button(string, string)
public abstract string Button(string htmlName, string htmlValue)
Parameters
Returns
Button(string, string, string)
public abstract string Button(string htmlName, string htmlValue, string htmlClass)
Parameters
Returns
Button(string, string, string, string)
Return an html button element.
public abstract string Button(string htmlName, string htmlValue, string htmlClass, string htmlId)
Parameters
Returns
CheckBox(string)
public abstract string CheckBox(string htmlName)
Parameters
htmlNamestring
Returns
CheckBox(string, bool)
public abstract string CheckBox(string htmlName, bool htmlValue)
Parameters
Returns
CheckBox(string, bool, string)
public abstract string CheckBox(string htmlName, bool htmlValue, string htmlClass)
Parameters
Returns
CheckBox(string, bool, string, string)
Return an html checkbox input element.
public abstract string CheckBox(string htmlName, bool htmlValue, string htmlClass, string htmlId)
Parameters
Returns
CheckList(string, string, int, string, string, string, string)
public abstract string CheckList(string htmlName, string primaryContentName, int primaryRecordId, string secondaryContentName, string rulesContentName, string rulesPrimaryFieldname, string rulesSecondaryFieldName)
Parameters
htmlNamestringprimaryContentNamestringprimaryRecordIdintsecondaryContentNamestringrulesContentNamestringrulesPrimaryFieldnamestringrulesSecondaryFieldNamestring
Returns
CheckList(string, string, int, string, string, string, string, string)
public abstract string CheckList(string htmlName, string primaryContentName, int primaryRecordId, string secondaryContentName, string rulesContentName, string rulesPrimaryFieldname, string rulesSecondaryFieldName, string secondaryContentSelectSQLCriteria)
Parameters
htmlNamestringprimaryContentNamestringprimaryRecordIdintsecondaryContentNamestringrulesContentNamestringrulesPrimaryFieldnamestringrulesSecondaryFieldNamestringsecondaryContentSelectSQLCriteriastring
Returns
CheckList(string, string, int, string, string, string, string, string, string)
public abstract string CheckList(string htmlName, string primaryContentName, int primaryRecordId, string secondaryContentName, string rulesContentName, string rulesPrimaryFieldname, string rulesSecondaryFieldName, string secondaryContentSelectSQLCriteria, string captionFieldName)
Parameters
htmlNamestringprimaryContentNamestringprimaryRecordIdintsecondaryContentNamestringrulesContentNamestringrulesPrimaryFieldnamestringrulesSecondaryFieldNamestringsecondaryContentSelectSQLCriteriastringcaptionFieldNamestring
Returns
CheckList(string, string, int, string, string, string, string, string, string, bool)
public abstract string CheckList(string htmlName, string primaryContentName, int primaryRecordId, string secondaryContentName, string rulesContentName, string rulesPrimaryFieldname, string rulesSecondaryFieldName, string secondaryContentSelectSQLCriteria, string captionFieldName, bool isReadOnly)
Parameters
htmlNamestringprimaryContentNamestringprimaryRecordIdintsecondaryContentNamestringrulesContentNamestringrulesPrimaryFieldnamestringrulesSecondaryFieldNamestringsecondaryContentSelectSQLCriteriastringcaptionFieldNamestringisReadOnlybool
Returns
CheckList(string, string, int, string, string, string, string, string, string, bool, string)
public abstract string CheckList(string htmlName, string primaryContentName, int primaryRecordId, string secondaryContentName, string rulesContentName, string rulesPrimaryFieldname, string rulesSecondaryFieldName, string secondaryContentSelectSQLCriteria, string captionFieldName, bool isReadOnly, string htmlClass)
Parameters
htmlNamestringprimaryContentNamestringprimaryRecordIdintsecondaryContentNamestringrulesContentNamestringrulesPrimaryFieldnamestringrulesSecondaryFieldNamestringsecondaryContentSelectSQLCriteriastringcaptionFieldNamestringisReadOnlyboolhtmlClassstring
Returns
CheckList(string, string, int, string, string, string, string, string, string, bool, string, string)
A list of checkboxes representing a many to many relationship. Process input with ProcessChecklist
public abstract string CheckList(string htmlName, string primaryContentName, int primaryRecordId, string secondaryContentName, string rulesContentName, string rulesPrimaryFieldname, string rulesSecondaryFieldName, string secondaryContentSelectSQLCriteria, string captionFieldName, bool isReadOnly, string htmlClass, string htmlId)
Parameters
htmlNamestringprimaryContentNamestringThe table being presented. ex. a list of groups that a person may join, this is the People content.
primaryRecordIdintThe id of the record in the primary content. ex. a list of groups that a person may join, this is the peraon's id.
secondaryContentNamestringThe table being related. ex. a list of groups that a person may join, this is the group content.
rulesContentNamestringThe table holding the relationship in a many to many connection. ex. a list of groups that a person may join, this is a table with a personid and a groupId.
rulesPrimaryFieldnamestringThe field in the relationship table that identifies the record in the primary content. ex. a list of groups that a person may join, this the field in the raltionship table that points to the person record, like personId.
rulesSecondaryFieldNamestringThe field in the relationship table that identifies the record in the secondary content. ex. a list of groups that a person may join, this the field in the raltionship table that points to the group record, like groupId.
secondaryContentSelectSQLCriteriastringThe checklist includes all the possible rlationships of the secondary content to the primary. This is the criteria part of a query (where clause) that limits the selection. ex. a list of groups that a person may join, this criteria limits the groups listed for a person to join, like only that tah ae enabled.
captionFieldNamestringisReadOnlyboolhtmlClassstringhtmlIdstring
Returns
Div(string)
public abstract string Div(string innerHtml)
Parameters
innerHtmlstring
Returns
Div(string, string)
public abstract string Div(string innerHtml, string htmlClass)
Parameters
Returns
Div(string, string, string)
Return an html div element.
public abstract string Div(string innerHtml, string htmlClass, string htmlId)
Parameters
Returns
Form(string)
Form tag
public abstract string Form(string innerHtml)
Parameters
innerHtmlstring
Returns
Form(string, HtmlAttributesForm)
Form tag
public abstract string Form(string innerHtml, HtmlAttributesForm attributes)
Parameters
innerHtmlstringattributesHtmlAttributesForm
Returns
Form(string, string)
Form tag
public abstract string Form(string innerHtml, string htmlName)
Parameters
Returns
Form(string, string, string)
Form tag
public abstract string Form(string innerHtml, string htmlName, string htmlClass)
Parameters
Returns
Form(string, string, string, string)
Form tag
public abstract string Form(string innerHtml, string htmlName, string htmlClass, string htmlId)
Parameters
Returns
Form(string, string, string, string, string)
Form tag
public abstract string Form(string innerHtml, string htmlName, string htmlClass, string htmlId, string actionQueryString)
Parameters
Returns
Form(string, string, string, string, string, string)
Form tag
public abstract string Form(string innerHtml, string htmlName, string htmlClass, string htmlId, string actionQueryString, string method)
Parameters
innerHtmlstringhtmlNamestringhtmlClassstringhtmlIdstringactionQueryStringstringmethodstring
Returns
H1(string)
public abstract string H1(string innerHtml)
Parameters
innerHtmlstring
Returns
H1(string, string)
public abstract string H1(string innerHtml, string htmlClass)
Parameters
Returns
H1(string, string, string)
Return an html h1 heading element.
public abstract string H1(string innerHtml, string htmlClass, string htmlId)
Parameters
Returns
H2(string)
public abstract string H2(string innerHtml)
Parameters
innerHtmlstring
Returns
H2(string, string)
public abstract string H2(string innerHtml, string htmlClass)
Parameters
Returns
H2(string, string, string)
Return an html h2 heading element.
public abstract string H2(string innerHtml, string htmlClass, string htmlId)
Parameters
Returns
H3(string)
public abstract string H3(string innerHtml)
Parameters
innerHtmlstring
Returns
H3(string, string)
public abstract string H3(string innerHtml, string htmlClass)
Parameters
Returns
H3(string, string, string)
Return an html h3 heading element.
public abstract string H3(string innerHtml, string htmlClass, string htmlId)
Parameters
Returns
H4(string)
public abstract string H4(string innerHtml)
Parameters
innerHtmlstring
Returns
H4(string, string)
public abstract string H4(string innerHtml, string htmlClass)
Parameters
Returns
H4(string, string, string)
Return an html h4 heading element.
public abstract string H4(string innerHtml, string htmlClass, string htmlId)
Parameters
Returns
H5(string)
public abstract string H5(string innerHtml)
Parameters
innerHtmlstring
Returns
H5(string, string)
public abstract string H5(string innerHtml, string htmlClass)
Parameters
Returns
H5(string, string, string)
Return an html h5 heading element.
public abstract string H5(string innerHtml, string htmlClass, string htmlId)
Parameters
Returns
H6(string)
public abstract string H6(string innerHtml)
Parameters
innerHtmlstring
Returns
H6(string, string)
public abstract string H6(string innerHtml, string htmlClass)
Parameters
Returns
H6(string, string, string)
Return an html h6 heading element.
public abstract string H6(string innerHtml, string htmlClass, string htmlId)
Parameters
Returns
Hidden(string, bool)
public abstract string Hidden(string htmlName, bool htmlValue)
Parameters
Returns
Hidden(string, bool, string)
public abstract string Hidden(string htmlName, bool htmlValue, string htmlClass)
Parameters
Returns
Hidden(string, bool, string, string)
Return an html hidden input element with a boolean value.
public abstract string Hidden(string htmlName, bool htmlValue, string htmlClass, string htmlId)
Parameters
Returns
Hidden(string, DateTime)
public abstract string Hidden(string htmlName, DateTime htmlValue)
Parameters
Returns
Hidden(string, DateTime, string)
public abstract string Hidden(string htmlName, DateTime htmlValue, string htmlClass)
Parameters
Returns
Hidden(string, DateTime, string, string)
Return an html hidden input element with a DateTime value.
public abstract string Hidden(string htmlName, DateTime htmlValue, string htmlClass, string htmlId)
Parameters
Returns
Hidden(string, double)
public abstract string Hidden(string htmlName, double htmlValue)
Parameters
Returns
Hidden(string, double, string)
public abstract string Hidden(string htmlName, double htmlValue, string htmlClass)
Parameters
Returns
Hidden(string, double, string, string)
Return an html hidden input element with a double value.
public abstract string Hidden(string htmlName, double htmlValue, string htmlClass, string htmlId)
Parameters
Returns
Hidden(string, int)
public abstract string Hidden(string htmlName, int htmlValue)
Parameters
Returns
Hidden(string, int, string)
public abstract string Hidden(string htmlName, int htmlValue, string htmlClass)
Parameters
Returns
Hidden(string, int, string, string)
Return an html hidden input element with an integer value.
public abstract string Hidden(string htmlName, int htmlValue, string htmlClass, string htmlId)
Parameters
Returns
Hidden(string, string)
public abstract string Hidden(string htmlName, string htmlValue)
Parameters
Returns
Hidden(string, string, string)
public abstract string Hidden(string htmlName, string htmlValue, string htmlClass)
Parameters
Returns
Hidden(string, string, string, string)
Return an html hidden input element with a string value.
public abstract string Hidden(string htmlName, string htmlValue, string htmlClass, string htmlId)
Parameters
Returns
InputDate(string)
public abstract string InputDate(string htmlName)
Parameters
htmlNamestring
Returns
InputDate(string, DateTime)
public abstract string InputDate(string htmlName, DateTime htmlValue)
Parameters
Returns
InputDate(string, DateTime, string)
public abstract string InputDate(string htmlName, DateTime htmlValue, string htmlClass)
Parameters
Returns
InputDate(string, DateTime, string, string)
Return an html date input element.
public abstract string InputDate(string htmlName, DateTime htmlValue, string htmlClass, string htmlId)
Parameters
Returns
InputFile(string)
public abstract string InputFile(string htmlName)
Parameters
htmlNamestring
Returns
InputFile(string, string)
public abstract string InputFile(string htmlName, string HtmlClass)
Parameters
Returns
InputFile(string, string, string)
Return an html file upload input element.
public abstract string InputFile(string htmlName, string HtmlClass, string HtmlId)
Parameters
Returns
InputHtml(string, int)
public abstract string InputHtml(string htmlName, int maxLength)
Parameters
Returns
InputHtml(string, int, string)
public abstract string InputHtml(string htmlName, int maxLength, string htmlValue)
Parameters
Returns
InputHtml(string, int, string, string)
public abstract string InputHtml(string htmlName, int maxLength, string htmlValue, string htmlClass)
Parameters
Returns
InputHtml(string, int, string, string, string)
public abstract string InputHtml(string htmlName, int maxLength, string htmlValue, string htmlClass, string htmlId)
Parameters
Returns
InputHtml(string, int, string, string, string, EditorContentType)
public abstract string InputHtml(string htmlName, int maxLength, string htmlValue, string htmlClass, string htmlId, CPHtml5BaseClass.EditorContentType contentType)
Parameters
htmlNamestringmaxLengthinthtmlValuestringhtmlClassstringhtmlIdstringcontentTypeCPHtml5BaseClass.EditorContentType
Returns
InputHtml(string, int, string, string, string, bool)
Return a WYSIWYG html editor input element.
public abstract string InputHtml(string htmlName, int maxLength, string htmlValue, string htmlClass, string htmlId, bool viewAsHtmlCode)
Parameters
Returns
InputHtml(string, int, string, string, string, List<SimplestDataBaseModel>)
public abstract string InputHtml(string htmlName, int maxLength, string htmlValue, string htmlClass, string htmlId, List<SimplestDataBaseModel> addonList)
Parameters
htmlNamestringmaxLengthinthtmlValuestringhtmlClassstringhtmlIdstringaddonListList<SimplestDataBaseModel>
Returns
InputPassword(string, int)
public abstract string InputPassword(string htmlName, int maxLength)
Parameters
Returns
InputPassword(string, int, string)
public abstract string InputPassword(string htmlName, int maxLength, string htmlValue)
Parameters
Returns
InputPassword(string, int, string, string)
public abstract string InputPassword(string htmlName, int maxLength, string htmlValue, string htmlClass)
Parameters
Returns
InputPassword(string, int, string, string, string)
Return an html password input element.
public abstract string InputPassword(string htmlName, int maxLength, string htmlValue, string htmlClass, string htmlId)
Parameters
Returns
InputText(string, int)
public abstract string InputText(string htmlName, int maxLength)
Parameters
Returns
InputText(string, int, string)
public abstract string InputText(string htmlName, int maxLength, string htmlValue)
Parameters
Returns
InputText(string, int, string, string)
public abstract string InputText(string htmlName, int maxLength, string htmlValue, string htmlClass)
Parameters
Returns
InputText(string, int, string, string, string)
Return an html text input element.
public abstract string InputText(string htmlName, int maxLength, string htmlValue, string htmlClass, string htmlId)
Parameters
Returns
InputTextArea(string, int)
public abstract string InputTextArea(string htmlName, int maxLength)
Parameters
Returns
InputTextArea(string, int, string)
public abstract string InputTextArea(string htmlName, int maxLength, string htmlValue)
Parameters
Returns
InputTextArea(string, int, string, string)
public abstract string InputTextArea(string htmlName, int maxLength, string htmlValue, string htmlClass)
Parameters
Returns
InputTextArea(string, int, string, string, string)
Return an html textarea element.
public abstract string InputTextArea(string htmlName, int maxLength, string htmlValue, string htmlClass, string htmlId)
Parameters
Returns
Li(string)
public abstract string Li(string innerHtml)
Parameters
innerHtmlstring
Returns
Li(string, string)
public abstract string Li(string innerHtml, string HtmlClass)
Parameters
Returns
Li(string, string, string)
Return an html list item element.
public abstract string Li(string innerHtml, string HtmlClass, string HtmlId)
Parameters
Returns
Ol(string)
public abstract string Ol(string innerHtml)
Parameters
innerHtmlstring
Returns
Ol(string, string)
public abstract string Ol(string innerHtml, string htmlClass)
Parameters
Returns
Ol(string, string, string)
Return an html ordered list element.
public abstract string Ol(string innerHtml, string htmlClass, string htmlId)
Parameters
Returns
P(string)
public abstract string P(string innerHtml)
Parameters
innerHtmlstring
Returns
P(string, string)
public abstract string P(string innerHtml, string htmlClass)
Parameters
Returns
P(string, string, string)
Return an html paragraph element.
public abstract string P(string innerHtml, string htmlClass, string htmlId)
Parameters
Returns
ProcessCheckList(string, string, int, string, string, string, string)
Process and input checklist
public abstract void ProcessCheckList(string htmlName, string primaryContentName, int primaryRecordID, string secondaryContentName, string rulesContentName, string rulesPrimaryFieldname, string rulesSecondaryFieldName)
Parameters
htmlNamestringprimaryContentNamestringprimaryRecordIDintsecondaryContentNamestringrulesContentNamestringrulesPrimaryFieldnamestringrulesSecondaryFieldNamestring
ProcessCheckList(string, string, string, string, string, string, string)
Process and input checklist
[Obsolete("Use ProcessCheckList with corrected primaryRecordID type", false)]
public abstract void ProcessCheckList(string htmlName, string primaryContentName, string primaryRecordId, string secondaryContentName, string rulesContentName, string rulesPrimaryFieldname, string rulesSecondaryFieldName)
Parameters
htmlNamestringprimaryContentNamestringprimaryRecordIdstringsecondaryContentNamestringrulesContentNamestringrulesPrimaryFieldnamestringrulesSecondaryFieldNamestring
RadioBox(string, bool, bool)
public abstract string RadioBox(string htmlName, bool htmlValue, bool currentValue)
Parameters
Returns
RadioBox(string, bool, bool, string)
public abstract string RadioBox(string htmlName, bool htmlValue, bool currentValue, string htmlClass)
Parameters
Returns
RadioBox(string, bool, bool, string, string)
Return an html radio button input element with a boolean value.
public abstract string RadioBox(string htmlName, bool htmlValue, bool currentValue, string htmlClass, string htmlId)
Parameters
Returns
RadioBox(string, DateTime, DateTime)
public abstract string RadioBox(string htmlName, DateTime htmlValue, DateTime currentValue)
Parameters
Returns
RadioBox(string, DateTime, DateTime, string)
public abstract string RadioBox(string htmlName, DateTime htmlValue, DateTime currentValue, string htmlClass)
Parameters
Returns
RadioBox(string, DateTime, DateTime, string, string)
Return an html radio button input element with a DateTime value.
public abstract string RadioBox(string htmlName, DateTime htmlValue, DateTime currentValue, string htmlClass, string htmlId)
Parameters
Returns
RadioBox(string, double, double)
public abstract string RadioBox(string htmlName, double htmlValue, double currentValue)
Parameters
Returns
RadioBox(string, double, double, string)
public abstract string RadioBox(string htmlName, double htmlValue, double currentValue, string htmlClass)
Parameters
Returns
RadioBox(string, double, double, string, string)
Return an html radio button input element with a double value.
public abstract string RadioBox(string htmlName, double htmlValue, double currentValue, string htmlClass, string htmlId)
Parameters
Returns
RadioBox(string, int, int)
public abstract string RadioBox(string htmlName, int htmlValue, int currentValue)
Parameters
Returns
RadioBox(string, int, int, string)
public abstract string RadioBox(string htmlName, int htmlValue, int currentValue, string htmlClass)
Parameters
Returns
RadioBox(string, int, int, string, string)
Return an html radio button input element with an integer value.
public abstract string RadioBox(string htmlName, int htmlValue, int currentValue, string htmlClass, string htmlId)
Parameters
Returns
RadioBox(string, string, string)
public abstract string RadioBox(string htmlName, string htmlValue, string currentValue)
Parameters
Returns
RadioBox(string, string, string, string)
public abstract string RadioBox(string htmlName, string htmlValue, string currentValue, string htmlClass)
Parameters
Returns
RadioBox(string, string, string, string, string)
Return an html radio button input element with a string value. The button is selected when htmlValue matches currentValue.
public abstract string RadioBox(string htmlName, string htmlValue, string currentValue, string htmlClass, string htmlId)
Parameters
Returns
SelectContent(string, int, string)
public abstract string SelectContent(string htmlName, int htmlValue, string contentName)
Parameters
Returns
SelectContent(string, int, string, string)
public abstract string SelectContent(string htmlName, int htmlValue, string contentName, string sqlCriteria)
Parameters
Returns
SelectContent(string, int, string, string, string)
public abstract string SelectContent(string htmlName, int htmlValue, string contentName, string sqlCriteria, string noneCaption)
Parameters
Returns
SelectContent(string, int, string, string, string, string)
public abstract string SelectContent(string htmlName, int htmlValue, string contentName, string sqlCriteria, string noneCaption, string htmlClass)
Parameters
htmlNamestringhtmlValueintcontentNamestringsqlCriteriastringnoneCaptionstringhtmlClassstring
Returns
SelectContent(string, int, string, string, string, string, string)
Return an html select element populated with records from a content table, selected by integer value.
public abstract string SelectContent(string htmlName, int htmlValue, string contentName, string sqlCriteria, string noneCaption, string htmlClass, string htmlId)
Parameters
htmlNamestringhtmlValueintcontentNamestringsqlCriteriastringnoneCaptionstringhtmlClassstringhtmlIdstring
Returns
SelectContent(string, string, string)
public abstract string SelectContent(string htmlName, string htmlValue, string contentName)
Parameters
Returns
SelectContent(string, string, string, string)
public abstract string SelectContent(string htmlName, string htmlValue, string contentName, string sqlCriteria)
Parameters
Returns
SelectContent(string, string, string, string, string)
public abstract string SelectContent(string htmlName, string htmlValue, string contentName, string sqlCriteria, string noneCaption)
Parameters
Returns
SelectContent(string, string, string, string, string, string)
public abstract string SelectContent(string htmlName, string htmlValue, string contentName, string sqlCriteria, string noneCaption, string htmlClass)
Parameters
htmlNamestringhtmlValuestringcontentNamestringsqlCriteriastringnoneCaptionstringhtmlClassstring
Returns
SelectContent(string, string, string, string, string, string, string)
Return an html select element populated with records from a content table, selected by string value.
public abstract string SelectContent(string htmlName, string htmlValue, string contentName, string sqlCriteria, string noneCaption, string htmlClass, string htmlId)
Parameters
htmlNamestringhtmlValuestringcontentNamestringsqlCriteriastringnoneCaptionstringhtmlClassstringhtmlIdstring
Returns
SelectList(string, string, string)
public abstract string SelectList(string htmlName, string htmlValue, string optionList)
Parameters
Returns
SelectList(string, string, string, string)
public abstract string SelectList(string htmlName, string htmlValue, string optionList, string noneCaption)
Parameters
Returns
SelectList(string, string, string, string, string)
public abstract string SelectList(string htmlName, string htmlValue, string optionList, string noneCaption, string htmlClass)
Parameters
Returns
SelectList(string, string, string, string, string, string)
Return an html select element populated from a delimited list of options.
public abstract string SelectList(string htmlName, string htmlValue, string optionList, string noneCaption, string htmlClass, string htmlId)
Parameters
htmlNamestringhtmlValuestringoptionListstringnoneCaptionstringhtmlClassstringhtmlIdstring
Returns
SelectUser(string, int, int)
public abstract string SelectUser(string htmlName, int htmlValue, int groupId)
Parameters
Returns
SelectUser(string, int, int, string)
public abstract string SelectUser(string htmlName, int htmlValue, int groupId, string noneCaption)
Parameters
Returns
SelectUser(string, int, int, string, string)
public abstract string SelectUser(string htmlName, int htmlValue, int groupId, string noneCaption, string htmlClass)
Parameters
Returns
SelectUser(string, int, int, string, string, string)
Return an html select element populated with users from a specified group.
public abstract string SelectUser(string htmlName, int htmlValue, int groupId, string noneCaption, string htmlClass, string htmlId)
Parameters
Returns
Ul(string)
public abstract string Ul(string innerHtml)
Parameters
innerHtmlstring
Returns
Ul(string, string)
public abstract string Ul(string innerHtml, string htmlClass)
Parameters
Returns
Ul(string, string, string)
Return an html unordered list element.
public abstract string Ul(string innerHtml, string htmlClass, string htmlId)