Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
Use WebDialogWindow as an javascript alert
posted

I am attempting to use a webdialogwindow to replace an existing javascript alert box.  The wdw will just display some text to the user, with an OK button on it.  After the user clicks the ok button, I want to continue to navigate to another web page. 

My problem is that after I call the wdw to show using the below code:

 

 

var diag = $find("diagDateRange").show();

my process is continuing to the next web page and not waiting for the click event that I've added in the page_load event:

btnClose.Attributes.Add(

"onClick", "BLOCKED SCRIPTCloseButtonClick();return false;");

which then calls this:

 

 

 

function CloseButtonClick() {var dw = $find("diagDateRange");

 

btnClose is an asp:button that is on the diagDateRange.  I do see the diagDateRange pop up on screen for a second.  I am already using another wdw in my application to do something similar, but I've got two buttons on it and must make a decision.  This wdw stays active on the screen until one of the buttons are clicked; not sure why this one isn't acting the same way. If you need any additional information, please let me know.  Thanks so much in advance!