By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,625 Members | 1,283 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,625 IT Pros & Developers. It's quick & easy.

Best way to open popup window on page load if session variable empty?

P: n/a
I have a need to open a popup window from one of my forms if a
particular session variable is empty. What is the best way to do this?
Once the popup opens, the user will make a selection from the window,
the session variable gets filled, the window closes, then no more
popup window because the session variable is not empty anymore.

Thanks in advance!
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi

Simply add an 'onload' event for any control on page and call a 'javascript' function that opens a model dialog
['showmodaldialog(...)

This has to be done like ... (code-behind-Page_Load) btn.Attributes.Add("OnLoad","openDialog();")
So simply add this if the session is not set else dont add it !!

Tell me if it doesn't work !!!(Sa*********@hotmail.com)
Nov 18 '05 #2

P: n/a
This doesn't work. Anyone have any other ideas?
On Sun, 25 Apr 2004 01:11:02 -0700, "Hmnt" <Sa*********@hotmail.com>
wrote:
Hi,

Simply add an 'onload' event for any control on page and call a 'javascript' function that opens a model dialog
['showmodaldialog(...)]

This has to be done like ... (code-behind-Page_Load) btn.Attributes.Add("OnLoad","openDialog();");
So simply add this if the session is not set else dont add it !!!

Tell me if it doesn't work !!!(Sa*********@hotmail.com)


Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.