Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > Other ASP.NET > ASP.NET 1.x and 2.0 Application Design
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 23rd, 2006, 07:48 AM
Authorized User
 
Join Date: Nov 2005
Location: lima, lima, Peru.
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!!!!!!!!!!!

  #2 (permalink)  
Old January 23rd, 2006, 11:05 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
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
  #3 (permalink)  
Old February 2nd, 2006, 05:21 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cairo, , Egypt.
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
  #4 (permalink)  
Old February 7th, 2006, 01:59 PM
Authorized User
 
Join Date: Nov 2005
Location: lima, lima, Peru.
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks guys for you help

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:28 PM.


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