The page you requested cannot be found.
Request RawUrl = /SeaPlanner/ScriptResource.axd?d=MZN8mrjHFHeJS_HFuw_hoFXoRri86JQ_-n6xsd10tRLAuzBPjqE1NaoSazV5LzG-X6cWyuwm-ikDSRGesWeS0t8fMPuiMKYEafpSBgnMVfaRuzktBack('ctl00$mnuMain','Log%20Off')
Referrer http://.../Seaplanner/default.aspx
UserHostAddress 81.132.73.121
UserHostName 81.132.73.121
12/2/2010 11:54:54 AM,
System.Web.Extensions,
This is an invalid script resource request.,
at System.Web.Handlers.ScriptResourceHandler.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)function confirmCallBackFn(arg) { if (arg == true) { __doPostBack("<%= DummyButton.ClientID %>", ""); } if (arg == false) { return; } } <telerik:RadAjaxManager ID="AppRadAjaxManager" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="SearchTreeView" EventName="NodeClick"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="DetailFormPanel" LoadingPanelID="DetailsAjaxLoadingPanel" UpdatePanelRenderMode="Inline" /> <telerik:AjaxUpdatedControl ControlID="Icto_No" UpdatePanelRenderMode="Inline" /> <telerik:AjaxUpdatedControl ControlID="AppVerID" UpdatePanelRenderMode="Inline" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> <ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" /> </telerik:RadAjaxManager> <telerik:RadAjaxLoadingPanel ID="DetailsAjaxLoadingPanel" Skin="Vista" runat="server"> </telerik:RadAjaxLoadingPanel>
This is the dummy control defintion for doing postback on radconfirm values:
<asp:LinkButton ID="DummyButton" CausesValidation="false" Text="" Width="0" runat="server" />If
DoDataCompare() Then AppRadAjaxManager.ResponseScripts.Add("radconfirm('Are you sure you want to navigate to a different node without saving your data?', confirmCallBackFn,330,100,null,'Save Changes?');")
<telerik:RadWindowManager ShowContentDuringLoad="false" ID="RadWindowManager" Behaviors="Close, Move, Pin" ReloadOnShow="true" VisibleStatusbar="false" runat="server"> <Windows> <telerik:RadWindow ID="RadWindow" Modal="true" Behaviors="Close, Move, Pin" Width="925px" Height="700px" runat="server"></telerik:RadWindow> </Windows> </telerik:RadWindowManager> <script type="text/javascript"> //MAKE SURE THAT THE FOLLOWING SCRIPT IS PLACED AFTER THE RADWINDOWMANAGER DECLARATION //Replace old radconfirm with a changed version. var oldConfirm = radconfirm; //TELERIK //window.radconfirm = function(text, mozEvent) //We will change the radconfirm function so it takes all the original radconfirm attributes window.radconfirm = function(text, mozEvent, oWidth, oHeight, callerObj, oTitle) { var ev = mozEvent ? mozEvent : window.event; //Moz support requires passing the event argument manually //Cancel the event ev.cancelBubble = true; ev.returnValue = false; if (ev.stopPropagation) ev.stopPropagation(); if (ev.preventDefault) ev.preventDefault(); //Determine who is the caller var callerObj = ev.srcElement ? ev.srcElement : ev.target; //Call the original radconfirm and pass it all necessary parameters if (callerObj) { //Show the confirm, then when it is closing, if returned value was true, automatically call the caller's click method again. var callBackFn = function(arg) { if (arg) { callerObj["onclick"] = ""; if (callerObj.click) callerObj.click(); //Works fine every time in IE, but does not work for links in Moz else if (callerObj.tagName == "A") //We assume it is a link button! { try { eval(callerObj.href) } catch (e) { } } } } //TELERIK //oldConfirm(text, callBackFn, 300, 100, null, null); //We will need to modify the oldconfirm as well oldConfirm(text, callBackFn, oWidth, oHeight, callerObj, oTitle); } return false; } </script>
Protected
Sub DummyButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles DummyButton.Click
End Sub
I know I have wriiten a big story but i want to explain to the fullest so that whoever lokks at this won't get confused. Can anyone help me with why the code after radconfirm gets executed? I want the code to get executed only when the user clicks CANCEL and the code in the postback when the user clicks OK.