I am developing an HTML form designer that should generate static HTML and display this to the user. I keep writing ugly code like this:
public string GetCheckboxHtml()
{
return ("<input type="checkbox" name="somename" />");
}
Is there a set of strongly typed classes that describe html elements and allow me to write code like this instead:
var checkbox = new HtmlCheckbox(attributes);
return checkbox.Html();
I just can't imagine the right namespace to search for this or the right search term to use on Google.
Praveen angyan
source
share