Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public List<HtmlGenericControl> BindHtmlTags()
{
genericControl = new List<HtmlGenericControl>();
try
{
HtmlGenericControl dropdownDivTag = new HtmlGenericControl("input");
dropdownDivTag.Attributes.Add("ID", "search");
genericControl.Add(dropdownDivTag);
HtmlGenericControl breakDivTag = new HtmlGenericControl("br");
breakDivTag.Attributes.Add("ID", "br");
genericControl.Add(breakDivTag);
return genericControl;
}
catch (Exception ex)
{
throw ex;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment