我需要 Html 将是这样的:
<form onsubmit="return manipulateForm()">
...
</form>
我正在生成它
HtmlTextWriterAttribute key;
string value;
using (HtmlTextWriter writer = new HtmlTextWriter(new System.IO.StringWriter(innerBuffer)))
{
writer.AddAttribute(key, value);
}
问题是HtmlTextWriterAttribute
Enum 没有OnSubmit的定义,我能通过它吗?