Created
March 13, 2012 02:55
-
-
Save vquaiato/2026290 to your computer and use it in GitHub Desktop.
blergh using forms to sendo POST requests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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