Okay, here's the situation: we want to be able to display ASPX pages
in an UpdatePanel. The reasons for this are performance related. The
site in development uses *lots* of modal popups from some pages, and
we don't want to load all that content until it's requested.
So, what we want to do is place an IFRAME inside an UpdatePanel and,
in the onclick event for the linkbutton or button control, set the SRC
so that the content is loaded on demand. So far, so good.
What I can't seem to figure out, at this point, is how you would go
about closing the modal popup once it's displayed. In theory, the
heirarchy looks like this:
Page
Button/LinkButton
ModalPopupExten der
UpdatePanel
IFrame
Page
OK/Cancel button
I'm relatively new to this Ajax business, but I've manged to figure
out how to get the page to load display in the IFrame when I want it
to, and that's all spiffy. Now I just need to know how to get it to
close in response to the user's actions.
Any help would be greatly appreciated.
Thanks!
Mike 3 3867
I can't answer your specific question, but I would put it all in a panel and
make it invisible unless you call the model popup. That way it wont load in
the page, and the buttons on the panel will close the model popup.
Marc
"Mike Hofer" <kc********@gma il.comwrote in message
news:ba******** *************** ***********@i76 g2000hsf.google groups.com...
Okay, here's the situation: we want to be able to display ASPX pages
in an UpdatePanel. The reasons for this are performance related. The
site in development uses *lots* of modal popups from some pages, and
we don't want to load all that content until it's requested.
So, what we want to do is place an IFRAME inside an UpdatePanel and,
in the onclick event for the linkbutton or button control, set the SRC
so that the content is loaded on demand. So far, so good.
What I can't seem to figure out, at this point, is how you would go
about closing the modal popup once it's displayed. In theory, the
heirarchy looks like this:
Page
Button/LinkButton
ModalPopupExten der
UpdatePanel
IFrame
Page
OK/Cancel button
I'm relatively new to this Ajax business, but I've manged to figure
out how to get the page to load display in the IFrame when I want it
to, and that's all spiffy. Now I just need to know how to get it to
close in response to the user's actions.
Any help would be greatly appreciated.
Thanks!
Mike
On Jul 31, 4:22*pm, "Marc " <RmEaMrO...@ima rc.co.ukwrote:
I can't answer your specific question, but I would put it all in a panel and
make it invisible unless you call the model popup. That way it wont load in
the page, and the buttons on the panel will close the model popup.
Marc
"Mike Hofer" <kchighl...@gma il.comwrote in message
news:ba******** *************** ***********@i76 g2000hsf.google groups.com...
Okay, here's the situation: we want to be able to display ASPX pages
in an UpdatePanel. The reasons for this are performance related. The
site in development uses *lots* of modal popups from some pages, and
we don't want to load all that content until it's requested.
So, what we want to do is place an IFRAME inside an UpdatePanel and,
in the onclick event for the linkbutton or button control, set the SRC
so that the content is loaded on demand. So far, so good.
What I can't seem to figure out, at this point, is how you would go
about closing the modal popup once it's displayed. In theory, the
heirarchy looks like this:
Page
* Button/LinkButton
* ModalPopupExten der
* UpdatePanel
* * *IFrame
* * * * Page
* * * * * *OK/Cancel button
I'm relatively new to this Ajax business, but I've manged to figure
out how to get the page to load display in the IFrame when I want it
to, and that's all spiffy. Now I just need to know how to get it to
close in response to the user's actions.
Any help would be greatly appreciated.
Thanks!
Mike- Hide quoted text -
- Show quoted text -
On these three pages we're developing, each page displays up to eight
modal dialog boxes of varying complexity. Several of these dialog
boxes include data repeaters with *lots* of data. We don't want those
pages loading until the user asks for them.
(Don't ask me why these are being displayed in modal dialog boxes.
Let's just say the creative department was smoking some really good
stuff, and no one from the software engineering department was
involved at the time to restrain their "Gee Whiz" impulses.)
So, embedding eight different dialog boxes on a single page with data
repeaters and all their data is impractical on a *very* high traffic
web site. I need to load this stuff dynamically. Further, some of
these pages have unique styling requirements, and I don't want to load
the style sheets for all those dialog boxes and further bloat the
request size. If I can just load the page when it's asked for and it's
size (and script) requirements, that's optimal.
Thanks,
Mike
the easiest way to do this is two hidden buttons, one as the targetid,
and one as the okcontrolid. then from client script just fire the
correct click to open/close the popup. the ok button in the iframe would
call a routine the parent to close (which would just fire the hidden ok
button). when you close the popup set the iframe src to a empty page, so
when you open it again, you don't have the last page displaying
-- bruce (sqlwork.com)
Mike Hofer wrote:
Okay, here's the situation: we want to be able to display ASPX pages
in an UpdatePanel. The reasons for this are performance related. The
site in development uses *lots* of modal popups from some pages, and
we don't want to load all that content until it's requested.
So, what we want to do is place an IFRAME inside an UpdatePanel and,
in the onclick event for the linkbutton or button control, set the SRC
so that the content is loaded on demand. So far, so good.
What I can't seem to figure out, at this point, is how you would go
about closing the modal popup once it's displayed. In theory, the
heirarchy looks like this:
Page
Button/LinkButton
ModalPopupExten der
UpdatePanel
IFrame
Page
OK/Cancel button
I'm relatively new to this Ajax business, but I've manged to figure
out how to get the page to load display in the IFrame when I want it
to, and that's all spiffy. Now I just need to know how to get it to
close in response to the user's actions.
Any help would be greatly appreciated.
Thanks!
Mike
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Earl Teigrob |
last post by:
Can a Modal Dialog Box do forms ASP.NET forms validation from within the
Modal Box? I want to pop up a dialog box to the user and have it do its own
post backs with validation checking and then save the data and close the
dialog when the page is valid. I have read a little about using Iframes to
post back to, but was wondering if this would...
|
by: rdemyan |
last post by:
I'm using code from the following web page to open the API Browse Folder
dialog
http://www.mvps.org/access/api/api0002.htm
It all works fine. But if the dialog box is open and the user closes Access,
the system just hangs and Access apparantly cannot close. I have to open the
Windows Task Manager and force the closing (and even that...
|
by: Nemisis |
last post by:
Hi everyone,
Does anyone know how to show an Ajax ModalPopup when a page loads? I
would like to use it as a warning dialog for a company record, so that
when a user navigates to a companies details, if there is a warning
message entered for the company, the dialog (modalpopup) displays, and
the user would have to press an Ok button on the...
|
by: Samuel Rhodes |
last post by:
hi
i am using a ajax modal popup to allow the user to search an item and select
the required item from the list.
whenever i try to search the item, which causes a post back....the modal
popup disappears/becomes invisible...
in general, any postback fired from within the modal popup makes the modal
popup disappear.
|
by: =?Utf-8?B?QWxCcnVBbg==?= |
last post by:
I have a situation in which I need to check for data in either of two fields
and display an alert if neither field contains data or if both fields contain
data when the user clicks on a View button; these two fields are for Member
Number and for Social Security Number. I have written a Javascript function
to handle that situation. A new...
| |
by: SE.Computerguy |
last post by:
I am trying to use the AJAX modal popup on a click event from a
gridview. Any ideas on implementing this? The AJAX control is looking
for a TargetControlID that will trigger the popup but the button field
in the grid does not have an ID.
Doug
|
by: fran_j_diaz |
last post by:
Hi,
I have a page with an Ajax modal popup.
I would like to know when my Modal popup is opened, my page still able
to modify.
Is it possible ?
(I use Visual Studio 2005, c# )
|
by: =?Utf-8?B?SmFtZXMgUGFnZQ==?= |
last post by:
Hi all
Have a couple of issues with the modal popup extender (asp.net 3.5, vb.net,
visual studio 2008):
I have created a user control (e-mail enquiry form) which is designed to
accept text input then send an e-mail.
The user control has 2 views – view 1 –e-mail input form, view 2
confirmation that e-mail has been sent.
|
by: Alec MacLean |
last post by:
Hi,
I have a page using AJAX. The page has three modal popups that work fine when I don't have field validators in place.
As soon as I put a validator in place, the popup "form" the validator is part of still works, but the click events (postback) of the other popups is stopped.
So, I have two data entry forms I want to validate, each...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |