Asp.net Webアプリケーションでは、web.configファイルの次のコード行を使用してHttpVerbsを拒否できますが、MVCはアクションコントローラをルーティングに使用し、承認属性を承認用に使用します。 これを処理するカスタム属性を作成したいと考えています。 カスタム属性を作成して、デフォルトですべてのアクションメソッドで一部のHTTP動詞を拒否し、HTTPGetとHTTPPostの
私は、コントローラ public ActionResult Index() {}
public ActionResult Insert() {}
[HttpPost]
public ActionResult Insert() {
//some insert code
redirect to where you come from but exclude Insert p
i テーブルに動的に2つのカラムを追加したいだけです。 MVCかみそりを使用して...、これは以下の私のコードです: - <table>
<tr>
<th>id</th>
<th>name</th>
<th>type</th>
<th>delete</th>
<th>modified</th>
and for getting