Solved

Javascript ShowModalDialog function problem

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

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…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
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…

789 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