8 February, 2010
0 Comments
0 categories
If you want to do a postback from javascript with ASP .NET AJAX and the aspx page contains a
<form id="mainForm" runat="server">
, you can create and use the javascript function to do a postback from javascript:
function DoPostBack() {
var form = document.getElementById(‘mainForm’);
form.submit();
}