json + .net works debug mode inbuilt web server nonetheless going practical dir directly
i have following javascript:
$.ajax({
type: "post",
datatype: "json",
url: "/home/submit",
data: {
email: stremail,
message: strmessage
},
success: function(result) {
//alert('here');
alert(result.message);
},
error: function(error) {
alert(error);
}
});
this creates function:
public jsonresult submit(string email, twine message) {
relapse json(new {
summary = "yep"
});
}
this works glorious debug mode inbuilt webserver.
however i practical dir directly does hits blunder bit. i trustworthy slight formula behind never gets hit.
i am controlling vista.
additionally blunder outline bit where says alert(error);
thanks,
alex
Comments
Post a Comment