An Avanade Blogging Community

Welcome to An Avanade Blogging Community Sign in | Join | Help
in Search

Johan's Avanade Blog

showModalDialog and PostBack

Working on a MOSS component, I implemented a Modal Popup form including a SPGridView with Sorting an Filtering features.  unfortunately, I spent "huge" amount of time figuring-out how to make the grid working properly with its PostBack events.  The main issue was every javascript call resulted in the opening of a new form...

I found a bunch of posts regarding this, and the main advice was to avoid using the showModalDialog for non-static content.  Just use the window.open()...

I finally found this post.  The result was to add the following line to the <head> tag of my popup form:

<base target="_self"/>

With this all my javascript code and PostBack events work like a charm!

Published Friday, June 20, 2008 5:08 AM by johanr

Comments

No Comments
Anonymous comments are disabled

This Blog

Post Calendar

<June 2008>
SuMoTuWeThFrSa
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

Syndication