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
55
Showing from a postback...
posted

I have the need to show a popup when the page is load. I could do this with the Microsoft popup control as it has the ability to call the show function from the codebehind like this:

 oPopup.Show();

 The WebDialogWindow seems to only be fired from javascript.

 I tried adding the javascript to the body tag:

<body onload="modalshow('sControlID');">

but this does not work.

 

My Javascript is defined as:

 

script type="text/javascript" >

var oWebDialogWindow = null;

function modalShow(sControlID)

{

oWebDialogWindow = $find(sControlID);

 

if(oWebDialogWindow != null)

oWebDialogWindow.show();

}

oWebDialogWindow always comes back as null.

 

How can I do a show triggered from a postback?