Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > ASP.NET 4 General Discussion
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion 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 March 13th, 2013, 05:31 PM
Authorized User
 
Join Date: Oct 2012
Posts: 19
Thanks: 6
Thanked 0 Times in 0 Posts
Default Connecting a main and subordinate ASP pages

I am looking for something similar to "subform" in Access. I have a main ASP page that is linked to a "PO" record and I need to have a subordinate ASP page linked to a new or (one to many) existing "Item" records that have their foreign key linked to the "PO" record. It would be pretty straight forward to link from the main ASP page to the subordinate ASP page but I need to have both pages displayed on the screen at the same time for the user because the user may want to make changes on both. Also some fields on the main ASP page are populated by data from the subordinate page. I think it would be odd to have the user jump back and forth between the two screens if we had to display them seperately.

Does any of this make sense?
 
Old March 18th, 2013, 05:19 PM
Authorized User
 
Join Date: Oct 2012
Posts: 19
Thanks: 6
Thanked 0 Times in 0 Posts
Default

Since I have received no reply to my questions, I take it that there is nothing really equivalent in ASP.NET to what I'm looking for. From my further exploration, it seems that the best alternative is to open a new window for entering the details for each item. That way a user could simply click on whichever window the user wished to see.
It apears that the command for doing so is "open method (windows)" with the command window.open(...). Is this the recommended way for opening a new window without closing the current window?
 
Old March 19th, 2013, 10:43 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

The search terms you're looking for is "master detail asp.net:. If you search for that on Google or Bing you'll find manu useful examples.

It comes down to associating a List control like a GridView with a details control (like DetailsView or FormView). When the selecting changes in the list, you can update the details control.

Cheers.

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
nick1248 (March 20th, 2013)
 
Old March 20th, 2013, 04:47 PM
Authorized User
 
Join Date: Oct 2012
Posts: 19
Thanks: 6
Thanked 0 Times in 0 Posts
Default

Imar,
This is just what I was looking for. I did a search on Google as you suggested. I found a youtube video "ASP.NET Grid - Master-Detail Presentation - YouTube" which was great. It moves very quickly so I'm sure I'll have to watch it many times before I can absorb it all.
Many thanks...
 
Old March 26th, 2013, 11:55 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Great; glad you find something useful.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Main function at chapter 6, pages 330-331 Johnson BOOK: Ivor Horton's Beginning Visual C++ 2010 1 November 29th, 2010 05:46 PM
ASP 3.5-spaces between main menu items stormage BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 May 22nd, 2010 03:45 AM
Same pages for sub domain from main domain vivek_inos ASP.NET 1.0 and 1.1 Professional 1 February 13th, 2007 10:15 AM
Connecting pages J_H Dreamweaver (all versions) 0 January 27th, 2007 07:09 PM
Passing values between Asp to Asp pages. jayaraj ASP.NET 1.0 and 1.1 Professional 3 May 23rd, 2004 06:53 AM





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