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 July 6th, 2006, 03:20 PM
Registered User
 
Join Date: Mar 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Popup problem

Hi!
I am using Visual Studio.NET 2003 (C#) .

I have a page (say parent page) which has a button(Button1). When the user clicks on

'Button1', a popup screen(child page1) pops up. This child page has a lot of controls. When

the user clicks on one of the buttons on this child page , the childpage1 closes and the

values entered in child page are displayed on the parentpage controls. I have implemented

this using showModalDialog() , __doPostBack() (for the button Button1) and

Page.GetPostBackEventReference(Button1 ,string.Empty).

The part mentioned above is working absolutely fine.

Now, on the same parent page, I have one more button (Button2), which when clicked also

opens another pop up page(child page2). In this child page2, I have drop downlist & listbox.

The dropdownlist has autopostback (= true) which fills up the listbox.

 My problem is that, it doesn't fill up the listbox. I have run the debugger within the

code-behind , and found that , the items get filled in the listbox but it never shows on

the screen.

I have implemented this page also with the above mentioned method. I don't understand what

the reason is.

Can anybody please suggest.

Thanks and regards,

ap.

 
Old July 21st, 2006, 07:05 AM
Registered User
 
Join Date: Jul 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm also having the same problem and am happy to hear I am not alone! I have 1 popup window which contains an unpopulated listbox and some textboxes. I had the initial problem of the popup window caching its textboxes when the popup was used subsequent times but fixed this with asp.net cache clearing solution.

New problem, I have a button on the popup window which when clicked tries to add something to the listbox. I can watch the event in debugging and see the string successfully add to the listbox, however when the page is returned to the browser the listbox does not contain the added string.

If the Listbox.Items.Add("this") is in Page_Load then it only successfully adds to the listbox when Page.IsPostBack is false. The problem seems to be related to caching again but I am already clearing the cache. I have also set IE to always get the latest version of a web page. I have also tried using IFRAME as suggested here http://msdn.microsoft.com/msdnmag/is...5/CuttingEdge/ but that didn't work.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in closing the parent window from a popup rakesh.kashnia1 Javascript 4 July 9th, 2007 05:39 AM
popup problem carro123 Javascript How-To 0 May 16th, 2005 01:46 PM
Problem with closing popup fs22 Javascript 4 May 20th, 2004 09:37 AM
problem with Popup tgopal Javascript 4 October 29th, 2003 08:27 AM





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