raise page.postback with javascript

D

DotNet Developer

Franck said:
Hi,
How can I raise the postback event of my page with Javascript ?

Thks for help

form.submit(); will give you that.

Here is the full code I use:

var theform;
if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
theform = document.Form;
}
else {
theform = document.forms["Form"];
}

function _doPagePostBack()
{
Page_ValidationActive = false; //you may want to disable client side
validation

theform .submit();
}
--


(e-mail address removed)
http://www.freelancedotnetdeveloper.com
Providing consultancy services in .NET
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,114
Latest member
GlucoPremiumReview
Top