From: Elliot on
There is a C# page a.aspx which has a master page b.aspx.
b.aspx has panels & methods.
I would like to know is it possible to change those panels' visibility or
call thoese methods in a.aspx?
Thanks for answering.

From: Mark Rae [MVP] on
"Elliot" <elliot_barclay(a)hotmail.co.uk> wrote in message
news:EE887BA0-863F-4540-8DF3-94B73B72A9A9(a)microsoft.com...

> There is a C# page a.aspx which has a master page b.aspx.
> b.aspx has panels & methods.
> I would like to know is it possible to change those panels' visibility or
> call thoese methods in a.aspx?
> Thanks for answering.

http://www.odetocode.com/articles/450.aspx


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

From: Göran Andersson on
Elliot wrote:
> There is a C# page a.aspx which has a master page b.aspx.
> b.aspx has panels & methods.
> I would like to know is it possible to change those panels' visibility
> or call thoese methods in a.aspx?
> Thanks for answering.

You just get the reference to the master page and cast it to the actual
class of your master page, then you can access it's members.

Example:

((b)Page.Master).SomeMethod();

--
Göran Andersson
_____
http://www.guffa.com