などのボタンとバリデータに正しい値に設定されています
自分自身の質問に答えるためには、URLの書き換えを使用しているので、タグのレンダリングメソッドをオーバーライドし、副作用として、通常はサーバーサイドでレンダリングされるonclick属性をレンダリングしていなかったからです。
public class Form : System.Web.UI.HtmlControls.HtmlForm
{
/// <summary>
/// The RenderAttributes method adds the attributes to the rendered <form> tag.
/// We override this method so that the action attribute is not emitted.
/// </summary>
protected override void RenderAttributes(HtmlTextWriter writer)
{
// You cannot simply remove the form action as it seems to get rendered anyway
// but if you set it to the RawURL it will be the correct value on URL rewritten pages.
base.Attributes["action"] = HttpContext.Current.Request.RawUrl;
base.RenderAttributes(writer);
}
}
:
は、代わりに私は私のカスタム「ActionlessFormは」コントロールは、次のコードを使用するように変更しました