Re: Auf MasterPage Properties zugreifen (ASP.NET 2.0)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Hannes [MVP] (aspTUDASWEG_at_ppedv.de)
Date: 11/02/04


Date: Tue, 2 Nov 2004 16:10:21 +0100

klar ! ist ja auch kein Property von master sondern von der geerbten Master
Klasse!

-- 
-Hannes
www.ppedv.de company site
www.devtrain.de community site
"Tony" <nospam> schrieb im Newsbeitrag 
news:%23jy9joOwEHA.2568@TK2MSFTNGP11.phx.gbl...
> Der Fehler wird schon in der IDE angezeigt:
> 'Footer' is not a member of 'System.Web.UI.MasterPage'.
>
> Tony
>
>
> "Hannes [MVP]" <aspTUDASWEG@ppedv.de> wrote in message 
> news:%23RV2ZLOwEHA.3908@TK2MSFTNGP12.phx.gbl...
>> gibts eine Fehlermeldung?
>>
>> -- 
>> -Hannes
>>
>> www.ppedv.de company site
>> www.devtrain.de community site
>>
>> "Tony" <nospam> schrieb im Newsbeitrag 
>> news:eqP$zdNwEHA.536@TK2MSFTNGP11.phx.gbl...
>>> Hi,
>>>
>>> Auf vielen Seiten ist zu lesen, dass man von Content Seiten auf 
>>> Properties der jeweiligen Masterpage zugreifen kann. Ich Habe dies in 
>>> einem Testprojekt ausprobiert. Ohne Erfolg.
>>>
>>> Ich habe mich an folgendes Beispiel gehalten:
>>> http://msdn.microsoft.com/library/en-us/dnvs05/html/masterpages.asp?frame=false#masterpages_topic11
>>> (Exposing Properties and Methods from a Master Page)
>>>
>>> Ich finde keinen Anhaltspunkt, was ich falsch gemacht habe. Ich benutze 
>>> das Framework v2.0.40607
>>>
>>> Hier mein Code:
>>>
>>> MasterPage.master:
>>>
>>> <%@ Master Language="VB" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 
>>> 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
>>> <script runat="server">
>>>    Private _footer As String
>>>    Public Property Footer() As String
>>>        Get
>>>            Return _footer
>>>        End Get
>>>        Set(ByVal value As String)
>>>            _footer = value
>>>        End Set
>>>    End Property
>>> </script>
>>> <html xmlns="http://www.w3.org/1999/xhtml" >
>>> <head runat="server"><title>Untitled Page</title></head>
>>> <body><form id="form1" runat="server"><div>
>>> <asp:contentplaceholder id="ContentPlaceHolder1" 
>>> runat="server"></asp:contentplaceholder>
>>> </div><small><%=_footer%></small></form></body></html>
>>>
>>> Contentpage.aspx:
>>>
>>> <%@ Page Language="VB" MasterPageFile="~/MasterPage.master" 
>>> Title="Untitled Page" %>
>>> <script runat="server">
>>>    Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
>>>        Master.Footer = "Custom Page Footer"
>>>    End Sub
>>> </script>
>>> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" 
>>> Runat="server"></asp:Content>
>>>
>>>
>>> Für jede Hilfe bin ich sehr dankbar,
>>> Güße Tony
>>>
>>
>>
>
> 


Relevant Pages

  • Re: Auf MasterPage Properties zugreifen (ASP.NET 2.0)
    ... 'Footer' is not a member of 'System.Web.UI.MasterPage'. ... >> Public Property Footer() As String ... >> End Property ... >> Güße Tony ...
    (microsoft.public.de.german.entwickler.dotnet.asp)
  • Re: What happened to
    variable in PowerPoint 2007
    ... I go to the slide master. ... I just click the cursor on the text field with the <footer> before it, ... What's new in PowerPoint 2007?http://www.echosvoice.com/2007.htm ...
    (microsoft.public.powerpoint)
  • Re: Newbie Question about master page in ASP.NET 2.0
    ... pages, with the same header, footer, menu. ... simple one, don't have to use the master page, etc. ... but whenever I navigate to a new ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Filename footers of a Handout in PP Version 2002 V10
    ... ' Macro to add the path and file name to each slide's footer. ... ' ' Checks whether there is a Title Master, and if so, updates the ... > accessible in the pot file. ...
    (microsoft.public.powerpoint)
  • Re: How to edit footer on Slide Master
    ... It's very unusual for you not to be able to even select the footers -- even if they came from PPT 2003. ... Try going into master view and then clicking the Home tab and Select | Selection Pane over on the far right of the Home tab. ... I think you'll need to do this on each individual slide layout. ... Can you select the three footer boxes (the date, the slide number, the ...
    (microsoft.public.powerpoint)