Wrox Programmer Forums
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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, 2007, 10:24 PM
Authorized User
Join Date: Feb 2007
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default Postback other page

I have a page that contains a listbox to store team member names and two buttons. 1 to delete and 1 to add. When I click on the add button a lookup page is opened in a new window and the user can then add a new person. This is written to the DB table and the window closes. But the new person will not show up in the original page until I refresh the page.

How can I force a refresh of the original page after the user has added a new team member so that this new team member shows up in the listbox?

Thanks for the help
Old July 7th, 2007, 12:46 AM
Friend of Wrox
Join Date: Aug 2004
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post

Well a simpler approach could be that you create a javascript method on the parent page, which when called will close the child window, will submit the parent page and set a value in a hidden control, then on the page load you can check that if hidden contains a value, bind the listbox again, and finally empty the hidden's value.


Don't expect too much, too soon.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Refresh on first postback slim182 ASP.NET 2.0 Basics 4 February 20th, 2007 08:22 PM
postback of a particular Controll not whole page Raz Muhammad General .NET 1 November 29th, 2004 12:42 PM
Calculator Using Postback - page 256 ukbrit Dreamweaver (all versions) 1 November 2nd, 2004 05:04 PM

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