Expose Property

Expose Property

am 17.04.2008 18:45:31 von Shapper

Hello,

Is it possible to create a property in a master page which is
accessible from its nested master pages?
I created a property in my Master Page but I am not able to access it
its Nested Master Page.

I am using ASP.NET 3.5.

Thanks,
Miguel

Re: Expose Property

am 17.04.2008 19:19:49 von Patrice

"not able" that is ? If this is just a type casting problem try :

http://msdn2.microsoft.com/en-us/library/c8y19k6h(VS.80).asp x

--
Patrice

"shapper" a écrit dans le message de news:
70eed109-dd58-4275-a77a-d786d0d69745@a70g2000hsh.googlegroup s.com...
> Hello,
>
> Is it possible to create a property in a master page which is
> accessible from its nested master pages?
> I created a property in my Master Page but I am not able to access it
> its Nested Master Page.
>
> I am using ASP.NET 3.5.
>
> Thanks,
> Miguel

RE: Expose Property

am 17.04.2008 21:50:01 von brucebarker

you can cast the master or let asp.net do it by adding a mastertype directive

<%@ MasterType TypeName="MyMasterPage" %>

-- bruce (sqlwork.com)


"shapper" wrote:

> Hello,
>
> Is it possible to create a property in a master page which is
> accessible from its nested master pages?
> I created a property in my Master Page but I am not able to access it
> its Nested Master Page.
>
> I am using ASP.NET 3.5.
>
> Thanks,
> Miguel
>