Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Javascript ShowModalDialog function problem

Posted on 2007-03-28
1
Medium Priority
?
439 Views
Last Modified: 2008-01-09
I m using ShowModalDialog function of javascript to display a popup window, like this

window.showModalDialog("CardActivation.aspx",window ,"dialogWidth:800px; dialogHeight:400px; resizable:yes");


and on CardActivation.aspx page,  Page_load() event i m poulation a text box with a value i receive from a session variable.

My problem is that, The Page_Load() fires the first time the session starts, but after that it doesnt get fired.
Can anyone help me with what is the problem.. thanks a lot in advance
0
Comment
Question by:jyotishb
1 Comment
 
LVL 15

Accepted Solution

by:
stanscott2 earned 2000 total points
ID: 18810418
I think the problem is that CardActivation.aspx is being cached.  You can use various methods to set no caching in the <HEAD> section of this page (Google "prevent page cache"); you can also use a dummy string you create based on something like the date and time, and use this:  CardActivation.aspx?var=mydummyresult, instead of CardActivation.aspx.  Where you add something in the QueryString this way, the browser will be forced to reload.
0

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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question