Skip to content

Instantly share code, notes, and snippets.

@MaheshHika
Created November 10, 2016 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MaheshHika/5e215aeb17a487eaea47a6ab62eafaf8 to your computer and use it in GitHub Desktop.
Save MaheshHika/5e215aeb17a487eaea47a6ab62eafaf8 to your computer and use it in GitHub Desktop.
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