Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional 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 April 24th, 2008, 11:26 AM
Authorized User
 
Join Date: Apr 2008
Posts: 35
Thanks: 1
Thanked 0 Times in 0 Posts
Default Paging Datagrid in a Modal Window

It seems to be a bug that if your modal window contains a datagrid that is set for paging that the new page will open in a new window rather than updating the existing.

I have read up and the suggested solution is to open an intermediate window that contains an IFRAME and put the datagrid page inside the IFRAME.

So, my main page (main.aspx) contains something like:

strReturnValue = Window.ShowModalDialog("container.aspx?variable1=A AA&variable2=BBB"... etc)

I will then need to create the 'container.asp' file which is something like

<html>
<iframe src='datagrid.aspx?variable1=AAA&variable2=BBB' height='500' width='500px'></iframe>
</html>

...

Bearing in mind that I need to pass some parameters to the datagrid and capture information back to my main page, my questions come as:

() Is there a simpler way to acheive this result?

If so, advice would be appreciated.
If not, more questions...

() Does anyone have a simple working example they could provide?
() Could you give a simple(ish) step-by-step on what needs to be done?
() How to I pass the variables to/from these pages correctly?

Any help would be greatly appreciated.

Regards,

Sean
__________________
Regards,

Sean





Similar Threads
Thread Thread Starter Forum Replies Last Post
Autopostback in a modal window gabrieldcr2 ASP.NET 1.x and 2.0 Application Design 3 February 7th, 2006 01:59 PM
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.