Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > ASP.NET 4 General Discussion
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 13th, 2013, 05:31 PM
Authorized User
Points: 92, Level: 1
Points: 92, Level: 1 Points: 92, Level: 1 Points: 92, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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?
Reply With Quote
  #2 (permalink)  
Old March 18th, 2013, 05:19 PM
Authorized User
Points: 92, Level: 1
Points: 92, Level: 1 Points: 92, Level: 1 Points: 92, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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?
Reply With Quote
  #3 (permalink)  
Old March 19th, 2013, 10:43 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
nick1248 (March 20th, 2013)
  #4 (permalink)  
Old March 20th, 2013, 04:47 PM
Authorized User
Points: 92, Level: 1
Points: 92, Level: 1 Points: 92, Level: 1 Points: 92, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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...
Reply With Quote
  #5 (permalink)  
Old March 26th, 2013, 11:55 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 02:44 PM.


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