473,387 Members | 1,798 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,387 software developers and data experts.

public sub (on master page) not visible after upgrade form 2.0 2005to 2008 3.5

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 fore colour
The content pages which inherit from the master page do not now see
the public sub and give a compile error

I've deleted the sub saving the project and adding the public sub back
again - no joy

How do I declare a sub of a master page which is visible to the conten
pages please?
Jun 27 '08 #1
1 1086
"NotTooSerious" <ia**@ava.co.ukwrote in message
news:ad**********************************@24g2000h sh.googlegroups.com...
The content pages which inherit from the master page
The content pages inherit from the MasterPage?
do not now see the public sub and give a compile error
And what is the compile error?
How do I declare a sub of a master page which is visible to the content
pages please?
Have you forgotten to reference the Master Page through the Page.Master
property or set the @MasterType directive in the aspx file...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 27 '08 #2

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

Similar topics

4
by: Suresh | last post by:
Is there any way to access the custom properties of a master page from the aspx form? I know the custom properties of a master page can be accessed from the aspx.cs partial class by specifying...
4
by: brett | last post by:
I have an ASPX page that needs to use a FORM. However, it's master page already has a FORM element, which prevents the ASPX page from using its FORM element. I'm not doing anything special on the...
4
by: brett | last post by:
How can I use an HTML FORM tag on a content page that uses a Master page? The HTML FORM is now inside the Master page serverside FORM. I need to use the HTML FORM on a few pages. Thanks, Brett
3
by: William Youngman | last post by:
I am on a team that is developing a proposal generation web application and we are using a custom base page (ProGenBase.cs) located in the app_code directory and all of the app's web pages inherit...
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. ...
0
by: rubrish | last post by:
I have a master page like this It is working fine in IE buyt in Mozilla FOoter is not coming down it goes to the right. <%@ Master Language="C#" AutoEventWireup="true"...
2
by: =?Utf-8?B?QnJhdmVoZWFydA==?= | last post by:
Open a new web form and switch to design view no problems. When the new web form uses my master page and I switch to design view, VS2008 crashes with 'Not Responding'. I use virtual machines and...
1
by: Ex glider pilot | last post by:
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.