Expose Property

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
Shapper [ Do, 17 April 2008 18:45 ] [ ID #1944379 ]

Re: Expose Property

"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" <mdmoura [at] gmail.com> a écrit dans le message de news:
70eed109-dd58-4275-a77a-d786d0d69745 [at] 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
Patrice [ Do, 17 April 2008 19:19 ] [ ID #1944385 ]

RE: Expose Property

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

<% [at] 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
>
brucebarker [ Do, 17 April 2008 21:50 ] [ ID #1944393 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » Expose Property

Vorheriges Thema: Project manager / CVS in ASP.Net like Sourceforge.net
Nächstes Thema: Database Design: Is this Even Practical?