Hi ,
You can cancel the asyncpostback request in client side itself and for this check out this link :- http://www.dotnetcurry.com/ShowArticle.aspx?ID=176 .
The following code is taken from the same link which I have mentioned above :-
function pageLoad()
{
Sys.WebForms.PageRequestManager.getInstance().add_initializeRequest(cancelPostBack);
}
function cancelPostBack(sender, args)
{
if (Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack())
{
alert('One postback at a time please');
args.set_cancel(true);
}
}
Now in the cancelPostBack method you have args parameter . In order to know which element caused the postback you can use the following code snippet :-
Regards
Pawan Mishra
Moving from Asp.Net to WPF and SilverLight .....
.Net 360°