473,322 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

ModalPopup Extender

132 100+
Hi there.

I am utilising a ModalPopupExtender in my ASP.Net (C#) page, to act as a dialog box so a user can either select from a dropdown list or perform a search for an item.

This all works as required but the overhead in terms of page lag is causing problems. Out of curiosity I have loaded the web page and selected View Source. This has shown that for each dropdownlist within the ModalPopup panels, the respective target data is being cached within the page, hence as you can imagine the html is huge for a commercial database. Also the ViewState is ridiculous looking.

Is this to be expected or are there additional options that I can use to stop the page from loading all the data at runtime? Some suggestions have been to use JavaScript to add functionality with the ModalPopup but I'm not sure what to use in order to stop the Extender from preloading data as such..?

Normally I use the ModalPopupExtender for simple help pages and such, so the text/functionality would be somewhat reduced.
In effect I only want the ModalPopUp data to be evident if/when invoked and not at page load. Failing that, can anybody recommend another way to use a dialog-type control in my web page please?

Just for info, my ModalPopupExtender panel has a TextBox with a Search button and below this a DropDownList of possible values and then an OK button.

Thank you.

Mark :o)
Mar 11 '09 #1
2 2811
E11esar
132 100+
I have stumbled onto "WHY" this is happening. In the Panel that is invoked by the ModalPopup, I am populating the ListBox that is within this panel in the OnLoad event, so hence that is why the data is eveident as is.

I need to work out how to isolate this so that the ListBox is populated only when the ModalPopup is invoked by selecting this via a LinkButton.

If anybody has anything to add on doing this then that will be most welcome, please?

Thank you.

Mark :o)
Mar 11 '09 #2
acoder
16,027 Expert Mod 8TB
Since the data comes from the server-side, you will need to use Ajax to populate the list box. Alternatively, you can use an iframe.
Mar 11 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Brad | last post by:
To DB2 Personal Developer Edition GIS users: How do I acquire a spatial extender license key for the DB2 PDE? I expected to be able to use it right out of the box. Brad
5
by: Darth Continent | last post by:
Hello, I'm trying to replicate the functionality presented here specific to the ModalPopup control: http://ajax.asp.net/ajaxtoolkit/ModalPopup/ModalPopup.aspx I've created a C# Ajax-enabled...
0
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...
1
by: mbruyns | last post by:
i have been trying (and sometimes succeeding) to use the modalpopupextender to show various panels of controls on my asp pages. the strange problem that i keep on running into is that sometimes it...
1
by: Jamie Sutherland | last post by:
Hi , On my page I have updatepanel 2 buttons, 2 modalpopup extenders panel with a updatepanel and some textboxes in it. I want to use the 2 buttons to open the same panel using the...
1
by: gsauns | last post by:
I have a DetailsView inside a ModalPopup (using the AJAX ModalPopupExtender). I would like the user to have the ability to change the DetailsView's mode within the ModalPopup. But whenever I...
3
by: gyanendar | last post by:
Hi All, I have to implement modelpopup.I am using masterTemplate. the code : body { font:normal 10pt/13pt Arial, Verdana, Helvetica, sans-serif; color:#666666; margin:20px; }
2
by: sangam56 | last post by:
Hi all. I have used modalpopup extender to popup a login from a panel. It is shown when a timer in the masterpage fires it's tick event. Everything is going ok. But each item a child page loaded the...
9
by: semomaniz | last post by:
If you have used modalpopup often you are aware that if the content of the page is big enough you are able to scroll the page and still the modalpop remains at the center of the page or the x y...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.