hi i had this function in my previous php site for posting data and getting response on page, but i can't figure it out in aspx page (not using mvc). here is the code:
$.post('contact.aspx/submitdata', data, function () {
alert_msg.fadeOut();
form.find('.msg-thanks').fadeIn(function () {
textarea.val(textarea.attr('title'));
window.setTimeout(function () {
form.find('.msg-thanks').fadeOut();
}, 5000);
});
});
previously it was:
$.post('mail/send.php', data, function () {
alert_msg.fadeOut();
form.find('.msg-thanks').fadeIn(function () {
textarea.val(textarea.attr('title'));
window.setTimeout(function () {
form.find('.msg-thanks').fadeOut();
}, 5000);
});
});
An the worst part is the method invoked doesnt come into debugging calls. here is the method:
[WebMethod]
public void SubmitData(string[] data) {
//do something;
}