views:

278

answers:

1

I have a werid situation where a modal popup gets hidden automatically when it is opened via javascript (either by doing a .open or by doing a .click on the opening button). Everything is fine when the opening button (ie TargetControl) is used.

To rephrase the question - what keywords should I use to search the ScriptResource.axd or any other script file to find the right place to put a breakpoint to?

+1  A: 

Found out how to catch the hide call - it is in one of those generated ScriptResource.axd files. Just enable script debugging and open you page, VS will load the page and all JS files and then you can do a search for hide or for this._hideImplementation(). On a separate note I still don't know why the popup is being closed but I have a hunch it has something to do with UpdatePanel.

juhan_h