Note that there are some explanatory texts on larger screens.

plurals
  1. POCheckBox event can not find javascript function
    primarykey
    data
    text
    <p>I have a few controls designed to verify certain data before a user may do a soft delete on server data.</p> <p>The error:</p> <p>Compiler Error Message: CS1061: 'ASP.editdivision_aspx' does not contain a definition for 'show_confirm' and no extension method 'show_confirm' accepting a first argument of type 'ASP.editdivision_aspx' could be found (are you missing a using directive or an assembly reference?)</p> <pre><code>Line 28: &lt;td&gt;&lt;asp:TextBox runat="server" ID="txtDivisionName" Width="250" /&gt;&lt;/td&gt; Line 29: &lt;/tr&gt; Line 30: &lt;tr&gt;&lt;td&gt;&lt;asp:CheckBox ID="chkDelete" runat="server" Text="Delete" OnCheckedChanged="show_confirm" /&gt;&lt;/td&gt;&lt;/tr&gt; Line 31: &lt;tr&gt;&lt;td&gt;&lt;asp:Button ID="btnSave" runat="server" Text="Save" OnClick="SaveClick" /&gt;&lt;/td&gt;&lt;/tr&gt; Line 32: &lt;/table&gt; </code></pre> <p>The script:</p> <pre><code>&lt;script type="text/jscript" &gt; function show_confirm() { PageMethods.VerifyDelete(CallSuccess, CallFailed); } function CallSuccess(res, destCtrl) {} function CallFailed(res, destCtrl) { var r = confirm("There are active Campaigns in this Division!\nAre you sure you want to proceed?"); if (r == true) { PageMethods.Save(); //alert("Division and related Campaigns deleted."); } } &lt;/script&gt; </code></pre> <p>I have been unable to determine why I am getting this runtime error. I am new to asp and javascript so I am sure it is something simple I missed, but I have been searching for 2 days on what the problem is.</p>
    singulars
    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.
    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