So in JS it would be
<script>
function myLoad() {
var res = showModalDialog(...);
document.getElementById('s
}
window.onload=myLoad;
</script>
<div id="someDiv"></div>
Main Topics
Browse All TopicsI 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.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
What you ask is not possible. The way that an ASP.NET web application (and any other web site) works is by receiving a request from the browser, processing it, and sending a response back. This means that by the time you are rendering the page on the browser, the server already finished processing.
However, what you want to do could be accomplished in other ways. You can set up a modal dialog box on your site that when clicked, it causes an event to be triggered at the server, which in turn will perform an appropriate action.
If you offer more details as to what you want to accomplish, we'll be able to help better.
Business Accounts
Answer for Membership
by: mplungjanPosted on 2007-07-30 at 05:21:36ID: 19591838
The response write has executed when the html was sent to the browser.
You can delay the RENDERING but not the execution