Created
July 13, 2015 22:24
-
-
Save brian-lim-42/3677fec5d16765557147 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var obj = {}; | |
obj.TestString = "Test"; | |
obj.TestInt = 1; | |
obj.TestBool = true; | |
$.ajax({ | |
type: 'POST', | |
url: '@Url.Action("Test", "Test")', // replace this with the name of the controller and model | |
data: JSON.stringify(obj), | |
dataType: "html", | |
success: function (html) { | |
alert('success'); | |
$('#div').html(html); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment