Wrox Programmer Forums
|
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 23rd, 2006, 07:48 AM
Authorized User
 
Join Date: Nov 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Autopostback in a modal window

Hi, I'm using a modal window (window.showModalDialog), in that page I have some server controls that has the autopostback set to true. So when the autopostback is fired, the modal window opens a new window instead of refreshing itself, when I use window.open it doesn't have any problem, my question is: Is there a problem with Modal Dialog when using postbacks?
Thanks for you help!!!!!!!!!!!

 
Old January 23rd, 2006, 11:05 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

This is a known issue.

I use lots of modal dialogs and have gotten around this problem by creating a helper page (aspx) that has a single iframe that fills the window. Inside of that goes the actual page that will be seen. This causes all the postbacks to happen inside the iframe window instead of in the modal dialog window.

I believe another way to fix it is to add the <base> tag with the target specified. But I'm not sure what you'd specify it too. Probably the name of the modal dialog window.

-Peter
 
Old February 2nd, 2006, 05:21 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

just add this line to the ModalDialog "Head" html Tag
<base target="_self">

Ahmed Ali
Software Developer
 
Old February 7th, 2006, 01:59 PM
Authorized User
 
Join Date: Nov 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks guys for you help






Similar Threads
Thread Thread Starter Forum Replies Last Post
Paging Datagrid in a Modal Window fullingdale ASP.NET 1.0 and 1.1 Professional 0 April 24th, 2008 11:26 AM
Modal Window... babloo81 Javascript 2 February 21st, 2005 07:08 AM
Modal Dialog window Problem anandham Javascript 7 February 16th, 2005 06:08 PM
modal window pablens Classic ASP Professional 3 December 28th, 2004 05:28 PM
Modal dialog window eldanh ASP.NET 1.0 and 1.1 Basics 0 August 10th, 2004 02:07 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.