Nuggests for ShowModalDialog

Passing values to a dialog window opened through a ShowModalDialog function is easy and so is retrieving these values , this is usually done through the window.dialogArguments function. All said and done, These values are only available at the CLIENT-SIDE, To make these values available on the SERVER-SIDE the page needs to be resubmitted, When such a page ( Page displayed in a modal window) is resubmitted, a new window with the same page is displayed. This can be avoided by including the following code in the HEADER section of the HTML.
<BASE target="_self">

The Second problem one might face while submitting a Page displayed through a ShowModalDialog function is that it picks up data from the cache, To avoid this problem include the following line in the SERVER-SIDE code.
Page.Response.Expires = 0;
Page.Response.Expires = 0;
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s