i want to access code behind when I clicked on a J Query Button , like when i Clicked on a ASP Button . there are some code for this purpose like this .
jQuery.ajax({
type: "POST",
url: "edit.aspx/yourmethodname",
data: "{yourmethodparam:" + somevar + "}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(response) {
alert(response.d);
}
error: function(err, response) {
alert("error");
}
});
But for this code we have to use static method ... and in static method i can't access object's like Textbox1.text and so on... i want when i clicked on a jquery button it worked exactly like a asp Button . and i want the jquery button be in Update Panel to avoid of refreshing page i'm very pleased if anyone can help me ...