Client to host to client flow

I have a Print page.  The user clicks a Print button and I do some code-behind server processing.   Depending on this processing, I may want prompt the user for print parameters.   I want to use Javascript and showModalDialog to do the prompt.

I do not know how to accomplish this.   If a do a response.redirect on the server, I can display my prompt page just fine, but of course its not modal.   I have also done this - created a dummy page that I redirect to on the server and that page does nothing more than call showModalDialog  to display my prompt page from window.onload.  But, then that dummy page is displayed, of course.   I want my prompt page to be display from my Print page.  

How do I "call" back, in effect,  to a Javascript function on my Print page?  
Who is Participating?
CodeCruiserConnect With a Mentor Commented:
You make the initial call using AJAX to the server. The server will response with additional parameters needed or a URL to navigate to to get the download.
HLRosenbergerAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.