473,385 Members | 1,973 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Making a public property on a master page visible to a content page

Hi
I have a public property on a master page:

Public Sub SetTitle(ByVal TitleText As String)
Me.lblMessage.Text = TitleText
End Sub

the page def of the content page is:
<%@ Page Language="VB" MasterPageFile="~/MasterPage.master"
AutoEventWireup="false" CodeFile="EditNewRequirement.aspx.vb"
Inherits="MembersArea_EditNewRequirement" title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
</asp:Content>
in vb

auto complete me.master does not give SetTiltle as valid

I have other pages where it seems to work fine, I created the page
from scratch with wizard vs 2008 net 3.5

any thought please?
Jun 27 '08 #1
1 1410
Type the Master in all content pages...

<%@ MasterType VirtualPath="~/MasterPage.master" %>
"Ex glider pilot" <ia*********@ava.co.ukwrote in message
news:b9**********************************@a70g2000 hsh.googlegroups.com...
Hi
I have a public property on a master page:

Public Sub SetTitle(ByVal TitleText As String)
Me.lblMessage.Text = TitleText
End Sub

the page def of the content page is:
<%@ Page Language="VB" MasterPageFile="~/MasterPage.master"
AutoEventWireup="false" CodeFile="EditNewRequirement.aspx.vb"
Inherits="MembersArea_EditNewRequirement" title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
</asp:Content>
in vb

auto complete me.master does not give SetTiltle as valid

I have other pages where it seems to work fine, I created the page
from scratch with wizard vs 2008 net 3.5

any thought please?
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Scott | last post by:
I'm using a master page (mp_TableMaint.aspx) with one Content area (ID: Content1). Content1 contains several usercontrols, which are hidden. The goal is to show the correct control based on the...
4
by: Learner | last post by:
Hello, Here is a little bit of what I am working ... I have selected Header and Side lay out for my Master Page. All my links go on the Side and the content on to the right pane. I have no...
5
by: Paul | last post by:
I have a MasterPage that has on it several UserControls (*ascx files). I wish to control the visibility of the controls on the content pages according to some parameter (for example on a user...
7
by: WayDownUnder | last post by:
Hello I am having trouble accessing a public porperty that my master page exposes I try to access it in a content page but the property is not visible through intell sense. Master Page...
9
by: J055 | last post by:
Hi I have a standard asp page which uses a MasterPage. The MasterPage contains a User control. How can I access a public method in the User control from my WebForm page? I can't move the method...
13
by: Kirk | last post by:
I have been reading Scott Allen's article on Master Pages (http:// odetocode.com/Articles/450.aspx) but I am having problems understanding a concept. Specifically, I have created a property...
6
by: =?Utf-8?B?SmF5IFBvbmR5?= | last post by:
I am trying to access a Public property on a Master Page from a Base Page. On the content pages I have the MasterType Directive set up as follows: <%@ MasterType virtualpath="~/Master.master" %>...
4
by: DotNetNewbie | last post by:
Hi, I have a .aspx page that has a master page. In the master page, I have a Literal Control, and I created a public property that allows you to set the liBlah.Text of the literal control. ...
1
by: NotTooSerious | last post by:
Hi I have just upgraded a project from 2005 net 2.0 frame work to 2008 net 3.5 frame work On the (single not nested) master page I have a lable which is wrapped in a public sub to set its text and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.