It depends on how much asp.net you want to use when submitting the form. I use the forms plugin in the same way, but you need to think about a more classic web model.
There is a “submit” in the forms plugin that does not contain any viewing information. That is, if you try to get such a value
sName = txtName.text
The text for txtName will be empty. But if you use your request object, you can drop the value if you know that this UniqueID control
sName = Request.Form (txtName.UniqueID)
Then what I would do is use the plugin extension of the form: callback to start an ajax call that will cancel your results. You can use ms ajax WebMethods for this, and you can call web methods directly from jquery without the need for ms script manager. In this case, WebMethod returns the html that I want to display on the page.
$(form).ajaxSubmit(function(){ success:function(ret){ $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", dataType: "json", data: "{}", url: "SomePage.aspx/SomeWebMethod", success: function(msg){ $('#somediv').html(msg); } } });
More info on ms ajax call with jquery here
Corey downie
source share