473,321 Members | 1,669 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,321 software developers and data experts.

[.Net 2.0] How to feed a master from a page ?

Hi,

I've build a corporate application that have a dozen of pages that use a
master page.

I'd like to add in each page a list of possible actions in a "task pane".
The design of this pane is common for all pages, but the tasks are page
specific.

What is the best way to reach my goal ?

By now, I think about adding a new content place holder embeded into the
design I want to reach, and in each pages, I add linkbuttons for each
actions.
However, this technic cause a problem: the contentplaceholder controls are
quite big in the designer and it does not reflect the result...

The other way I think about is to add a databound control but I don't know
if it is possible to move the datasource to each pages...
Thanks in advance,
Steve
May 9 '07 #1
3 1259
I would consider two options:

1) Databinding. Have the control for the pane in the master page. Make a
method BindTaskPane(Object meDataSource) on the master page and call it from
content pages passing specific datasources.

2) Have the control for the pane in the master page. Make a method
AddTask(myTaskClass myTaskObject) on the master page and call it from
content pages for every task record.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Steve B." <st**********@com.msn_swapwrote in message
news:Of**************@TK2MSFTNGP06.phx.gbl...
Hi,

I've build a corporate application that have a dozen of pages that use a
master page.

I'd like to add in each page a list of possible actions in a "task pane".
The design of this pane is common for all pages, but the tasks are page
specific.

What is the best way to reach my goal ?

By now, I think about adding a new content place holder embeded into the
design I want to reach, and in each pages, I add linkbuttons for each
actions.
However, this technic cause a problem: the contentplaceholder controls are
quite big in the designer and it does not reflect the result...

The other way I think about is to add a databound control but I don't know
if it is possible to move the datasource to each pages...
Thanks in advance,
Steve

May 9 '07 #2
Hi
steve
You can have a contentpalceholder and
build a user control with the links u required.
then place this user ctrl in contentpalce holder.

And for link buttons of the user ctrl create properties in user ctrl for
setting text and url of link buttons.And this properties will be set at time
of page load of individual page depending on task of that page.
"Steve B." wrote:
Hi,

I've build a corporate application that have a dozen of pages that use a
master page.

I'd like to add in each page a list of possible actions in a "task pane".
The design of this pane is common for all pages, but the tasks are page
specific.

What is the best way to reach my goal ?

By now, I think about adding a new content place holder embeded into the
design I want to reach, and in each pages, I add linkbuttons for each
actions.
However, this technic cause a problem: the contentplaceholder controls are
quite big in the designer and it does not reflect the result...

The other way I think about is to add a databound control but I don't know
if it is possible to move the datasource to each pages...
Thanks in advance,
Steve
May 9 '07 #3
Finally, since there is many possible controls (including one treeview, I
let the designer of each pages choose how this task pane is created... I
however keep the possibility to have two place holders, one with a managed
task list, the other with full control of content...

thanks,
Steve

"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:uA**************@TK2MSFTNGP06.phx.gbl...
>I would consider two options:

1) Databinding. Have the control for the pane in the master page. Make a
method BindTaskPane(Object meDataSource) on the master page and call it
from content pages passing specific datasources.

2) Have the control for the pane in the master page. Make a method
AddTask(myTaskClass myTaskObject) on the master page and call it from
content pages for every task record.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Steve B." <st**********@com.msn_swapwrote in message
news:Of**************@TK2MSFTNGP06.phx.gbl...
>Hi,

I've build a corporate application that have a dozen of pages that use a
master page.

I'd like to add in each page a list of possible actions in a "task pane".
The design of this pane is common for all pages, but the tasks are page
specific.

What is the best way to reach my goal ?

By now, I think about adding a new content place holder embeded into the
design I want to reach, and in each pages, I add linkbuttons for each
actions.
However, this technic cause a problem: the contentplaceholder controls
are quite big in the designer and it does not reflect the result...

The other way I think about is to add a databound control but I don't
know if it is possible to move the datasource to each pages...
Thanks in advance,
Steve


May 9 '07 #4

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

Similar topics

5
by: Michael Herman \(Parallelspace\) | last post by:
1. What are some compelling solutions for using Master/Content pages with Web Pages? 2. If a content area has a web part zone with web parts, what is the user experience like when "editting" the...
2
by: Jon Spivey | last post by:
Hi, Using VS 2005/VB.net. I need to add a meta description tag and change a stylesheet link from a page based on a master page. Found this article...
3
by: Jason James | last post by:
Hi all, my asp.net hoster does not provide me with access to the system.io library, so using a stringwriter as the output stream to write the XML needed for my RSS feed is looking very...
3
by: ivanpais | last post by:
Hi, I have a Web User Control, Lets say "Foo.ascx", that contains a button "btnFoo". I have a Master Page "Bar.master", that has a label "lblBar". This label is exposed by a public property...
17
by: Rob R. Ainscough | last post by:
Again another simple concept that appears NOT to be intuitive or I'm just stupid. I've read the WROX book and the example doesn't actually show how the .master page links in the other content...
2
by: SR | last post by:
I have started a web site using ASP.NET 2.0. I would like to centralize all of my classes in a StyleSheet but I cannot figure out how to link the StyleSheet to a Content Page since there is no...
4
by: Boris Yeltsin | last post by:
OK, on my Master Page I have a control: <a id="hypTabAccount" href="#" runat="server">Account</a> Now, in the code-behind (Root.master.vb) I can refer to it simply thus: ...
7
by: Just Me | last post by:
Hi I have a master page with a control on it, but I need to set a property of that control from the content. my master page is called Admin.Master and the class is Admin. I have tried this
6
by: =?Utf-8?B?SmF5IFBvbmR5?= | last post by:
I am trying to access a Public property on a Master Page from a Base Page. On the content pages I have the MasterType Directive set up as follows: <%@ MasterType virtualpath="~/Master.master" %>...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.