Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 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 October 6th, 2009, 11:34 AM
Friend of Wrox
 
Join Date: Apr 2005
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default Opening page without PostBack

Hi All,

I have an .aspx page which contains a asp textbox & asp button(Both Serverside) beside it. I want to click the button to open a new child page that contains a list of values & a O.K. button. There should not be any Postback in the parent page on clicking the server side button. After I select a value from the list and click OK I need to close the child page & populate the textbox in the parent page with the selected value.

Can anyone give sample codes for both parent & child pages to achive this ?

Thanks in advance !!!
 
Old October 7th, 2009, 12:00 AM
Friend of Wrox
 
Join Date: Jun 2007
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
Default

You'd have to do all that with Javascript, which is quite possible. However, you have the potential for browser incompatibility issues depending on whether Javascript is available or not.

If the page doesn't post back, it's not a server side programming issue because you can't run server side code. That means you have to run code on the client side and that means you've got to use Javascript.
__________________
-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.
 
Old October 12th, 2009, 07:34 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 107
Thanks: 1
Thanked 8 Times in 7 Posts
Default

Try an Ajax update panel and for the child page you could use a hidden div displayed when the child data page is requested and hidden when the data is selected.
Don't forget to add an ID for the div and also runat = server.

HTH
Tim





Similar Threads
Thread Thread Starter Forum Replies Last Post
Postback other page Snuffles ASP.NET 2.0 Basics 1 July 7th, 2007 12:46 AM
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.