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)