473,467 Members | 1,291 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Dynamic Master / Detail pages question

Hi,
I've just started playing around with master / detail pages and I'm trying
to simply change the detail page displayed in the contentplaceholder control
from code behind. I can't seem to find any examples of this. Does anyone know
how to do this?

Thanks in advance.
Jun 20 '06 #1
3 1552
sqlboy2000,

There are probably a large number of ways to this. You can put controls
inside two or more <div> tags with the id properties set and with
runat="server". Then, set the visibilities of the <div>s as you desire.

You can dynamically build contols in the code.

You can use nested master pages.

Can you provide more details on what you are trying to achieve?

Thanks,
Eagle

"sqlboy2000" wrote:
Hi,
I've just started playing around with master / detail pages and I'm trying
to simply change the detail page displayed in the contentplaceholder control
from code behind. I can't seem to find any examples of this. Does anyone know
how to do this?

Thanks in advance.

Jun 20 '06 #2
Just a simple example of changing the detail page in code behind.
controls.add() or whatever it is now when using master / detail pages.

"Ea******@HighFlyingBirds.com" wrote:
sqlboy2000,

There are probably a large number of ways to this. You can put controls
inside two or more <div> tags with the id properties set and with
runat="server". Then, set the visibilities of the <div>s as you desire.

You can dynamically build contols in the code.

You can use nested master pages.

Can you provide more details on what you are trying to achieve?

Thanks,
Eagle

"sqlboy2000" wrote:
Hi,
I've just started playing around with master / detail pages and I'm trying
to simply change the detail page displayed in the contentplaceholder control
from code behind. I can't seem to find any examples of this. Does anyone know
how to do this?

Thanks in advance.

Jun 20 '06 #3
Here's a suggestion. It can get tedious, however.

<asp:Content ID="Content1" runat="Server"
ContentPlaceHolderID="ContentPlaceHolder1">

<asp:Table id="tblMain" runat="server">
<asp:TableRow id="row1" runat="server">
<asp:TableCell id="cell11" runat="server">
</asp:TableCell>
</asp:TableRow>
</asp:Table>

</asp:Content>

At this point you can add rows and cells to tblMain in your code-behind.
You can also add controls to the cells.

You can also try this using the <div> tag instead of a table. I have not
used the <div> personally this way. I have successfully added rows and cells
to an asp:Table in this way, but I did not do it for all the content.

I hope this helps.

Have Fun!!!
Eagle

"sqlboy2000" wrote:
Just a simple example of changing the detail page in code behind.
controls.add() or whatever it is now when using master / detail pages.

"Ea******@HighFlyingBirds.com" wrote:
sqlboy2000,

There are probably a large number of ways to this. You can put controls
inside two or more <div> tags with the id properties set and with
runat="server". Then, set the visibilities of the <div>s as you desire.

You can dynamically build contols in the code.

You can use nested master pages.

Can you provide more details on what you are trying to achieve?

Thanks,
Eagle

"sqlboy2000" wrote:
Hi,
I've just started playing around with master / detail pages and I'm trying
to simply change the detail page displayed in the contentplaceholder control
from code behind. I can't seem to find any examples of this. Does anyone know
how to do this?

Thanks in advance.

Jun 20 '06 #4

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

Similar topics

8
by: Raphael Gluck | last post by:
Hi Everyone I am having some problems with a master detail page i have set up to catalogue brochures from my site. On my master page www.tripakltd.com/brochures.asp users are invited to select...
0
by: pbb | last post by:
I have a web page on which I dynamically create controls based on the selection a user makes from a dropdownlist (this ddl is not dynamic). Depending on the user's selection, the controls could be...
1
by: LilC | last post by:
I'm creating an application that has a standard layout for all pages. The information that is displayed in the layout will be dynamic based on the user that is logged in. Thus when a page is...
1
by: Sam | last post by:
Attached I am sending 2 URL's from MSFT ASP.net Quick Start Tutorial Web Site. 1) Run it URL: http://www.asp.net/QuickStart/aspnet/samples/data/GridViewMasterDetai... 2) View Source URL:...
0
by: Sam | last post by:
Sorry to post the same post multiple times but the URL Addresses were not Correct in Earlier Posts. Here are the correct URL's: 1) Run It URL is here: ...
0
by: xkeops | last post by:
I have a C# web app ... just playing around with master pages, themes and skins. I have read Scott's article: http://odetocode.com/Blogs/scott/archive/2005/12/09/2604.aspx Still not really...
4
by: Janet | last post by:
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...
1
by: Mark | last post by:
Currently I have a FP2003 site using Dynamic Web Templates. I plan to use VS to design a series of master pages to replace the DWTs. Does anyone know if there is an automated mechanism to...
0
by: Mike Wilson | last post by:
Dear group, I have an invoice entry form, which is a simple Master fields / Detail grid. The main summary information of the invoice are stored in one table in a dataset, which is bound using a...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
1
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.