|
Prev: Question about the asp.net 2.0 web configuration tool outside of development
Next: Data-bound DataGridView creates bogus empty rows
From: Elliot on 5 Jul 2008 12:31 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 5 Jul 2008 13:10 "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 5 Jul 2008 13:47
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 |