473,769 Members | 8,132 Online
Bytes | Software Development & Data Engineering Community
+ 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 contentplacehol der 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 1565
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 contentplacehol der 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******@HighF lyingBirds.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 contentplacehol der 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"
ContentPlaceHol derID="ContentP laceHolder1">

<asp:Table id="tblMain" runat="server">
<asp:TableRow id="row1" runat="server">
<asp:TableCel l 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******@HighF lyingBirds.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 contentplacehol der 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
4393
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 from a list of brochure categories, then once they press the submit button they will be taken to a different page www.tripakltd.com/library.asp The problem i am having, is that when I tell the detail page about the variable from the master page as...
0
1344
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 any combination of textboxes, ddls, popup calendars, etc. The properties of the dynamic controls are stored in a SQL database so that my program can know what type of control to render and what items to put in the ddl etc. My problem is that I...
1
2949
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 browsed to, I need to check to see if the user has logged in or not. Then if they have logged in, I need to pull their information from the database to display in the header. In previous applications, I made use of a base web page that all the...
1
2183
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: http://www.asp.net/QuickStart/util/srcview.aspx?path=~/aspnet/samples...
0
1302
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: http://www.asp.net/QuickStart/aspnet/samples/data/GridViewMasterDetailsInsertPage_vb.aspx
0
1258
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 clear for me. How can I apply a theme for a master page design app other than static in web config:
4
2195
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 kinds of staff details, like family member details, contact information, etc. Hence, this case, I'll have - Staff.master - Family.aspx
1
1145
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 extract the body from the DWT pages and drop it into then new master pages? I imagine it's a process very similar to the way you can select a plain site, then choose to attach the DWTs in one shot.
0
1726
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 BindingSource (InvoiceBindingSource). The line details of each item in the invoice is held in a child table which is bound to another bindingsource (InvoiceRowsBindingSource). I took the basic design from an MSDN article, and all works well....
0
9579
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10197
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10032
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9977
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9848
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8860
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6661
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5293
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3549
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.