I need the Html will be something like:
<form onsubmit="return manipulateForm()">
...
</form>
I'm generating it with
HtmlTextWriterAttribute key;
string value;
using (HtmlTextWriter writer = new HtmlTextWriter(new System.IO.StringWriter(innerBuffer)))
{
writer.AddAttribute(key, value);
}
The problem is that the HtmlTextWriterAttribute Enum does not have a definition for OnSubmit, hot do i get passed it?
Just saw that the class of
HtmlTextWriterhas override function forAddAttributeSo the solution will be like: