Apr 17, 2009, 12:12 PM
Ajax Event Confirmation Tag
Greetings.
I have a problem with the confirmation tag for a button's ajax event. The confirmation box appears, but when you click "Yes" to confirm, I receive the following exception in a client-side popup window:
Notes:
- I am using a master page.
- If I remove the confirmation tag, the ajax event works just fine.
Thanks,
-Koz
I have a problem with the confirmation tag for a button's ajax event. The confirmation box appears, but when you click "Yes" to confirm, I receive the following exception in a client-side popup window:
[NullReferenceException: Object reference not set to an instance of an object.]
Coolite.Ext.Web.ScriptManager.FireAsyncEvent(String eventName, ParameterCollection extraParams) +109
Coolite.Ext.Web.ScriptManager.RaisePostBackEvent(String eventArgument) +2138
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
Here is my button:<ext:Button ID="btnCancel" Enabled="true" IconCls="icon-cancel" Text="Cancel" runat="server">
<AjaxEvents>
<Click OnEvent="btnCancel_Click" Success="storeActiveTasks.load(); btnCancel.disable();">
<Confirmation ConfirmRequest="true" Title="Confirmation" Message="Cancel this task?"/>
</Click>
</AjaxEvents>
</ext:Button>
Any thoughts on what could be wrong? All the other events in my page work just fine, so I don't believe there's an issue with the script manager; however, the stack trace seems to hint otherwise.Notes:
- I am using a master page.
- If I remove the confirmation tag, the ajax event works just fine.
Thanks,
-Koz