|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Master and Content pagesI have a web page of various reports setup in a table like this: ************************************************ * * * Header * * * ************************************************* * * * * M * * * E * * * N * CONTENT * * U * * * * * * * * * * * ************************************************* When the client makes a menu selection I want to select from various Content pages that specify the input variables for the report like: date range, customer number, output type etc. I can design the master page with no problem with the placeholder for the content, but how do I dynamically select different content to go into the "Content" part? It seems like the content part is just fixed to a certain content file and I want to specify it based on the menu selection. Can someone point me to a good example or just let me know if there is some better way to do this? Thanks, Rick Hi Rick,
I think you meant to post this question to the microsoft.public.dotnet.framework.aspnet newsgroup :) Anyway, you have several options. Here are some: A. Create different UserControls (.ascx) for each possible interface and load them into the content page (.aspx) B. Create one UserControl that dynamically updates its content C. Create one page that dynamically updates its content D. Create different pages for each possible interface and link to the appropriate url (most common) -- Show quoteDave Sexton "Rick" <R***@LakeValleySeed.com> wrote in message news:u7gENJJEHHA.996@TK2MSFTNGP02.phx.gbl... > I'm trying to get the hang of using master and content pages in ASP.NET 2. > > I have a web page of various reports setup in a table like this: > > ************************************************ > * * > * Header * > * * > ************************************************* > * * * > * M * * > * E * * > * N * CONTENT * > * U * * > * * * > * * * > * * * > ************************************************* > > When the client makes a menu selection I want to select from various > Content pages that specify the input variables for the report like: date > range, customer number, output type etc. > > I can design the master page with no problem with the placeholder for the > content, but how do I dynamically select different content to go into the > "Content" part? It seems like the content part is just fixed to a certain > content file and I want to specify it based on the menu selection. > > Can someone point me to a good example or just let me know if there is > some better way to do this? > > Thanks, > > Rick > Thanks Dave,
You're right, I posted to the wrong group, hence the lack of response except for yours. Rick Show quote "Dave Sexton" <dave@jwa[remove.this]online.com> wrote in message news:eiUWkDQEHHA.3596@TK2MSFTNGP03.phx.gbl... > Hi Rick, > > I think you meant to post this question to the > microsoft.public.dotnet.framework.aspnet newsgroup :) > > Anyway, you have several options. Here are some: > > A. Create different UserControls (.ascx) for each possible interface and > load them into the content page (.aspx) > B. Create one UserControl that dynamically updates its content > C. Create one page that dynamically updates its content > D. Create different pages for each possible interface and link to the > appropriate url (most common) > > -- > Dave Sexton > > "Rick" <R***@LakeValleySeed.com> wrote in message > news:u7gENJJEHHA.996@TK2MSFTNGP02.phx.gbl... >> I'm trying to get the hang of using master and content pages in ASP.NET >> 2. >> >> I have a web page of various reports setup in a table like this: >> >> ************************************************ >> * * >> * Header * >> * * >> ************************************************* >> * * * >> * M * * >> * E * * >> * N * CONTENT * >> * U * * >> * * * >> * * * >> * * * >> ************************************************* >> >> When the client makes a menu selection I want to select from various >> Content pages that specify the input variables for the report like: date >> range, customer number, output type etc. >> >> I can design the master page with no problem with the placeholder for the >> content, but how do I dynamically select different content to go into the >> "Content" part? It seems like the content part is just fixed to a >> certain content file and I want to specify it based on the menu >> selection. >> >> Can someone point me to a good example or just let me know if there is >> some better way to do this? >> >> Thanks, >> >> Rick >> > > |
|||||||||||||||||||||||