Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Dynamic Master / Detail pages question

Reply
Thread Tools

Dynamic Master / Detail pages question

 
 
=?Utf-8?B?c3FsYm95MjAwMA==?=
Guest
Posts: n/a
 
      06-20-2006
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.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?RWFnbGVSZWRASGlnaEZseWluZ0JpcmRzLmNvbQ==?=
Guest
Posts: n/a
 
      06-20-2006
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.

 
Reply With Quote
 
 
 
 
=?Utf-8?B?c3FsYm95MjAwMA==?=
Guest
Posts: n/a
 
      06-20-2006
Just a simple example of changing the detail page in code behind.
controls.add() or whatever it is now when using master / detail pages.

"" 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.

 
Reply With Quote
 
=?Utf-8?B?RWFnbGVSZWRASGlnaEZseWluZ0JpcmRzLmNvbQ==?=
Guest
Posts: n/a
 
      06-20-2006
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.
>
> "" 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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
master/master/detail (easy one though) asmj ASP .Net 0 04-20-2007 09:10 AM
ASp.net data binding: Master-detail-detail Frederik Borg ASP .Net Datagrid Control 0 06-09-2006 11:41 AM
Cross Page Post Back When Using Mixture of Master Pages and Non-Master Pages Jason@webbit.com ASP .Net 1 05-16-2006 02:00 PM
Treeview - maintaining state with Master-detail pages Greg ASP .Net Web Controls 0 03-27-2006 03:37 PM
Master Detail detail Arun Kumar Menon ASP .Net Datagrid Control 0 08-06-2003 08:04 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57