Link to home
Start Free TrialLog in
Avatar of syswareinc
syswareinc

asked on

Stop execution during Page_Load() event

I have ASP.NET application.
I wan to open the Modal dialoguebox while my page loads and I want the rest of code excutes in page load event..when i close the modal dialogue box. for example as below
sub Page_Load()
some code...
Open dialogue box
Response.write("Hello")
End sub

I want Respons.write shoud execute after i close the dialogue box.

Is it possible...? and yes how?? I know its possible if i write inline code..but i don't want to do that.

Plz help.


ASKER CERTIFIED SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
So in JS it would be

<script>
function myLoad() {
  var res = showModalDialog(...);
  document.getElementById('someDiv').innerHTML='The result from the dialog is '+res
}
window.onload=myLoad;
</script>

<div id="someDiv"></div>

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial