Solved

Javascript ShowModalDialog function problem

Posted on 2007-03-28
1
423 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 500 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now