473,396 Members | 2,016 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Master & Details Page Reload

Hi,

I'm trying to use the master/detail page to display the information of
staff. The master page will display some general information, while the
differen detail pages will show the different kinds of staff details, like
family member details, contact information, etc.

Hence, this case, I'll have
- Staff.master
- Family.aspx
- Contact.aspx

where Family.aspx and Contact.aspx have master page defined as Staff.master.

So if I need to place the items in the menu, I can only use Family.aspx and
Contact.aspx, in order to show the Staff.master details.

The master page has a main "Save" button, and also a "Show" button, so that
when user types in the Staff ID and press the Show button, the page will
load the staff information.

The event of the Show button, of course it's in the master page, where I can
also kick off the loading of master details. However, how can i reload the
child page in this case?

Thanks for your kind help.

Regards,
Janet
Oct 12 '06 #1
4 2169
"Janet >" <<unknownwrote in message
news:uh**************@TK2MSFTNGP05.phx.gbl...
I'm trying to use the master/detail page to display the information of
staff. The master page will display some general information, while the
differen detail pages will show the different kinds of staff details, like
family member details, contact information, etc.

Hence, this case, I'll have
- Staff.master
- Family.aspx
- Contact.aspx

where Family.aspx and Contact.aspx have master page defined as
Staff.master.

So if I need to place the items in the menu, I can only use Family.aspx
and Contact.aspx, in order to show the Staff.master details.

The master page has a main "Save" button, and also a "Show" button, so
that when user types in the Staff ID and press the Show button, the page
will load the staff information.

The event of the Show button, of course it's in the master page, where I
can also kick off the loading of master details. However, how can i
reload the child page in this case?
MasterPages are designed for providing a common look and feel across your
site - but they should contain only those elements which are common to
several pages e.g. header, menu, logo, layout, JavaScript include files,
links to stylesheets etc.

IMO you should try to avoid coding any actual functionality into your
MasterPages e.g. loading and saving records - this should stay within the
ContentPages themselves.
Oct 12 '06 #2
Mark, thanks for the advice.

In this case, what are other options/suggestions that you think it's
feasible to such information display/maintenance page? I have thought of
using Panels/MultiView, but the page will simply load all controls, and I'll
just their visibility. This case, the loading of the page is very heavy.

Please advice.

Thanks.

Janet

"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:OE**************@TK2MSFTNGP03.phx.gbl...
"Janet >" <<unknownwrote in message
news:uh**************@TK2MSFTNGP05.phx.gbl...
>I'm trying to use the master/detail page to display the information of
staff. The master page will display some general information, while the
differen detail pages will show the different kinds of staff details,
like family member details, contact information, etc.

Hence, this case, I'll have
- Staff.master
- Family.aspx
- Contact.aspx

where Family.aspx and Contact.aspx have master page defined as
Staff.master.

So if I need to place the items in the menu, I can only use Family.aspx
and Contact.aspx, in order to show the Staff.master details.

The master page has a main "Save" button, and also a "Show" button, so
that when user types in the Staff ID and press the Show button, the page
will load the staff information.

The event of the Show button, of course it's in the master page, where I
can also kick off the loading of master details. However, how can i
reload the child page in this case?

MasterPages are designed for providing a common look and feel across your
site - but they should contain only those elements which are common to
several pages e.g. header, menu, logo, layout, JavaScript include files,
links to stylesheets etc.

IMO you should try to avoid coding any actual functionality into your
MasterPages e.g. loading and saving records - this should stay within the
ContentPages themselves.

Oct 12 '06 #3
"Janet >" <<unknownwrote in message
news:OT**************@TK2MSFTNGP03.phx.gbl...
In this case, what are other options/suggestions that you think it's
feasible to such information display/maintenance page? I have thought of
using Panels/MultiView, but the page will simply load all controls, and
I'll just their visibility. This case, the loading of the page is very
heavy.

Please advice.
As you've already discovered, when it comes to getting good performance from
web apps, small and many is better than big and few.

So make separate ContentPages...
Oct 12 '06 #4
Janet wrote:
The event of the Show button, of course it's in the master page
Can your child page override the method from the master page? You
could then call something like base.ShowButton_Click() to also call the
master page method once the child has done it's work.

Alternatively, you could call the method by using the Master property
of the child page, e.g. Page.Master.ShowButton_Click().

Tim

Oct 12 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Carl Gilbert | last post by:
Hi I am trying to get a site working with some 1&1 web space. I have the MS Business Pro account which has ASP.NET Support and SQL Server. I am trying to get an online gallery to work but I...
2
by: Rob R. Ainscough | last post by:
I'm using forms authentication along with Master pages -- my authenticated forms reside is a sub-dir (Secure) below the web site root dir. The problem is that any graphics placed on the Master...
5
by: Vincent A. | last post by:
Hello, I'm developping an asp.net application which used master page on which i add several web control. One of the them is a menu control which as several button in order to develop each sub...
1
by: brian.newman | last post by:
I'm trying to link a gridview to another gridview in a Master-Details architecture. But the Details list isn't filtering like it is suppossed to. It will show all items on page load and it won't...
17
by: MeerkatInFrance | last post by:
There comes a time when you know you are not going to be able to work something out yourself, however hard you try. I have reached that moment. I have a master page and a slave page (or whatever...
2
by: igotyourdotnet | last post by:
Is there a way to prevent the master page to reload every time the user makes a selection off of the menu? I want to give it a "Frame" like appearance were only the content section changes with a...
0
by: BillE | last post by:
PROBLEM SUMMARY -- I use "Response.Cache.SetCacheability(HTTPCacheability.NoCache)" to force a page to reload instead of displaying cached content. However, I don't really want to reload the...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
10
by: =?Utf-8?B?RGFuaQ==?= | last post by:
Hi, Trying to create a master page that holds a menu, and the menu switches between pages in the site. 2 problem arrosed: a. When I navigate from page to page (all AJAX Web Forms, with the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.