I have written this javascript code:
$(document).ready(function(){
$("form").submit(function(){
var form = $("form").serialize();
$.ajax({
type:"post",
url: "App_Code/data.cs/myFunction",
data:form,
datatype:"json",
success: function
});
});
});
How do I get the posted form data in the C# function?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.