• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 264
  • Last Modified:

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?  
1 Solution
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:

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now