469,927 Members | 1,623 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,927 developers. It's quick & easy.

Access Properties from Masterpage


I'm trying to access properties from a masterpage. With no success. Can
somebody help me please?

I used the example at:
(Exposing Properties and Methods from a Master Page)

here my code:


<%@ Master Language="VB" %>
<script runat="server">
Private _footer As String

Public Property Footer() As String
Return _footer
End Get
Set(ByVal value As String)
_footer = value
End Set
End Property
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<form id="form1" runat="server">
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server">

<%@ 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

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Thank you, Tony
Nov 18 '05 #1
0 995

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Steve Franks | last post: by
4 posts views Thread by RedHair | last post: by
3 posts views Thread by Alex Maghen | last post: by
4 posts views Thread by Boris Yeltsin | last post: by
6 posts views Thread by =?Utf-8?B?SmF5IFBvbmR5?= | last post: by
3 posts views Thread by tshad | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.