Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
here is My Master page forms:
XML
<form id="form1" runat="server" style="padding: 0; margin: 0; height: 100%;">
----
<div id="XYZ"></div>
---
----
</form>
<form id="form2" method="post" action="">
        <input type="hidden" id="RPTHtml" runat="server" />
        <input type="hidden" id="RPTPara" runat="server" />
        <input type="hidden" id="RPTResult" runat="server" />
    </form>


And
in javascript
----
JavaScript
PageMethods.CreateChart(XYZ.ID, nCountryNo, InStr_nDivisionNo, InStr_PositionNo, iYear, InStr_Month, '', '0', nCustomize_Min, nCustomize_Max, nCustomize_Step, onSucceed, onFailure, Obj_arr); 


(It's running in loop for 10 time (10 other DIV))
---
---
(And other buttom Click event has code something like this)
C#
var srcurl = 'data.aspx?M=getHTMLToPdf'
    form = Ext.get('form2').dom
    form.action = srcurl;
    form.submit();


and if this button is Pressed between loop time of page method then
all remain page method throw "server mathod failed " Error , Even it's Success at Server side.

How to prevent this?
Posted
Updated 30-Jun-14 2:25am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900