Note that there are some explanatory texts on larger screens.

plurals
  1. POPagemethods in popuppanel does not load the second time in IE9
    primarykey
    data
    text
    <p>I have a main page which has some <strong>pagemethod</strong> called to perform some activities. A <strong>popuppanel</strong>(popuppanel content page also have pagemethods) is used within this main page to show some details. If the same is executed multiple times (i.e., opening the popup panel many times), it is <strong>working</strong> in all other browsers <strong>other than IE9</strong> (working even in IE8). However, <strong>first</strong> time <strong>execution</strong> is <strong>successful</strong>. The code that is being used is provided below.</p> <p>Scriptmanager used as follow:</p> <p><code>&lt;ajaxToolkit:ToolkitScriptManager runat="server" ID="TSCM1" EnablePageMethods="true" /&gt;</code></p> <p><strong>Script In Main Page:</strong></p> <pre><code>function Clkd(){ var ppnl=document.getElementById("if1"); ppnl.src="Test1.aspx"; $find('&lt;%= MPE.ClientID %&gt;').show(); } function Clkd2(){ var ppnl=document.getElementById("if1"); ppnl.src=""; $find('&lt;%= MPE.ClientID %&gt;').hide(); } $(document).ready(function(){ PageMethods.mainPageMethod("MainTest",cbackfn); }); function cbackfn(str){ alert(str); } </code></pre> <p><strong>Page method:</strong></p> <pre><code> [System.Web.Services.WebMethod(EnableSession = true)] public static string mainPageMethod(String mainStr) { return mainStr + " Ok"; } </code></pre> <p><em><strong>Test1.aspx page Details (this is the page loaded inside the popup panel):</em></strong></p> <p><strong>Script code below :</strong></p> <pre><code>$(document).ready(function(){ PageMethods.Testpm("Test",fnd); }); function fnd(str){ alert(str); } </code></pre> <p><strong>Page method:</strong></p> <pre><code> [System.Web.Services.WebMethod(EnableSession = true)] public static string Testpm(String alrt) { return "Ok"; } </code></pre> <p>The following error is thrown if the same is executed the second time (in IE9 only)</p> <pre><code>SCRIPT5007: Unable to set value of the property '_UpdateProgress': object is null or undefined ScriptResource.axd?........ SCRIPT5007: Unable to get value of the property 'WebServiceProxy': object is null or undefined Test1.aspx, line 66 character 1 SCRIPT5007: Unable to get value of the property 'DomElement': object is null or undefined ScriptResource.axd?......, line 2 character 18851 SCRIPT5007: Unable to get value of the property 'add_init': object is null or undefined Test1.aspx, line 97 character 122 SCRIPT438: Object doesn't support property or method 'Testpm' Test1.aspx, line 11 character 4 </code></pre> <blockquote> <p><strong>Important Note</strong>: if main page does not have any pagemethods then its working fine. please help me out from this issue..</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload