Solved

Javascript ShowModalDialog function problem

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

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…
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 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…

697 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