Solved

Javascript ShowModalDialog function problem

Posted on 2007-03-28
1
432 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
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…
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…

707 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