Skip to content

Instantly share code, notes, and snippets.

@vquaiato
Created March 13, 2012 02:55
Show Gist options
  • Save vquaiato/2026290 to your computer and use it in GitHub Desktop.
Save vquaiato/2026290 to your computer and use it in GitHub Desktop.
blergh using forms to sendo POST requests
<li id="[email protected]">
@using (Ajax.BeginForm("Gostei", "Foo", new AjaxOptions { UpdateTargetId = "[email protected]" }))
{
@Html.AntiForgeryToken()
@Html.Hidden("foo",foo.Id)
<input type="submit" name="gostei" value="gostei"/>
}
<span id="[email protected]">13</span>
</li>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment