.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Can't access master page properties in Visual Studio

Posted By:      Posted Date: October 14, 2010    Points: 0   Category :ASP.Net

I have created a Master Page and exposed a Literal control on it by way of a public property.

    Public Property PageTitle() As Literal
            Return ltlTitle
        End Get
        Set(ByVal value As Literal)
            ltlTitle = value
        End Set
    End Property

In my content page I have referenced the Master Page like so :

<%@ Page Language="VB" MasterPageFile="~/Tools.master" AutoEventWireup="false" CodeFile="NewsletterUpload.aspx.vb" Inherits="NewsletterUpload" %>
<%@ MasterType VirtualPath="~/Tools.master" %>

However in my content page code behind I cannot see the custom properties of the master page in Visual Studio.

View Complete Post

More Related Resource Links

My Web Forms can't display Master Page in Visual Studio 2008



I hope somebody help me about this, I created a web site in visual studio 2008, the languaje is C#. After that, I created a master page for my web forms. The problem is: When I generate a new web form and choose the master page, the new web form can't display the content of the master page in designer mode or in the browser (by example, my web form is located in a directory called Users and master page is located in a directory called MasterViews. Only I can display them, if both files are in same location.

I reviewed the path of master page in the page directive, I changed the path with the same result.

Visual Studio closes itself by opening aspx-Page designer after Windows Update


Hey Guys,

I've a problem with my Visual Studio.

On the 13th of August 2010 i installed a Windows update on my vista sp2 pc. For this date my Visual Studio 2008 sp 1 always has closed itself by opening an aspx-page in designer view. There is no error message just closing the window. I restored a backup of my windows from the time before updating it and it helped, i could open aspx pages in the design view till the update has been installed again automatically after rebooting the pc. I can't disable windows updates, cause it's my pc at work and safety is very important. I hope you could help me out of this disaster.



Master Pages: Master Your Site Design with Visual Inheritance and Page Templates


Master pages in ASP.NET 2.0 solve a problem many Web developers have been solving on their own with a variety of techniques for years - providing a single master template for an entire site. This article covers the details of master pages, discussing their usage and implementation and how they are a natural evolution of custom techniques developers are using today.

Fritz Onion

MSDN Magazine June 2004

Visual Studio 2010 Shows Blank Page during web development


I just upgraded a web project from VS2008 to VS2010 Ultimate (Windows7 64bit, IE8/Google Chrome. When I run the web project in the development server (by hitting F5) everything acts like it is supposed to except everything comes up blank. Even the directory structure page is blank, just an empty HTML open and close shell. I get no errors no indications of failure, nothing. When I try to use google chrome I get the same blank page no matter where I navigate to, even if I try to navigate to a non-existant location on the dev server. I know the code compiles and acts correctly because I can deploy it to our QA servers without issue. Any ideas? 

Visual Studio 2008: having trouble in opening any web page

hi alli am unable to run any web page in the browser that i design in visual studio..i didnt understand that what happened.As the visual studio was working fine and i can easily run my websites that i create in it but now i tried to run different pages in its internal browser,internet explorer,mozilla firefox but they give error(the error which we get when we are not connected to internet and try to open a url).Even i had tried to build a new website and run it but the problem is still..i cant figure it out thats why came here and posted.so can anyone help me out...

master pages - how to access content page from master page?

Hello,I have a master page setup that is used throughout my site that is basically a header with a menu. I recently added a textbox and a button to this master page which is to be a quick search box that is available anywhere in the site. When a user enters text into the search box and hits the button, I need to load the actual content page which is used to search and show search results (which also uses this same master page), and have the text entered available so the search can be triggered automatically. Again, this search text box and button is now in my master page so it could be  triggered from anywhere in the app... it serves as a convenient way to do a basic search from anywhere in my app, without having to first navigate to the actual 'search page' that already exists.  You can also navigate to the actual search page, which uses the same master page, where there is many more search options.I'm thrown off by the master page arrangement, which I have not used until this project. What do I do?

Getting Content Control on Content Page in Visual Studio


Visual Studio 2010

Working on a content page (.aspx page with associated master page)

Not all of the content place holders from the master page are represented on the content page (have been deleted)

Can go to the master page, find the place holder I want, return to content page and type out the "content" tag.

Is there an easier way? Can I drag a content tag in from a toolbox somewhere? Can I "re-apply" a master page to a content page and have it restore missing place holders? Looking for the lazy way out.

Visual Studio Project Properties Customer Web Server option is Disabled


Hello All,

Can you please help me out to figure out the problem ?

I am not able to debug  ASP.Net applications on my localhost. What could be the reason.

When I checke project properties (for all my asp.net websites) i observered that the "Use Custom Web Server" option is disabled for all websites.

Any guesses what could be the reason. I am using Windows Xp SP 3 and have IIS installed on my computer. The issue was not there couple of days ago, but started creating problem since last night.


Thanks in advance.


Add Web reference in Visual Studio 2008 fails with Access denied error


i am trying to add a wsdl file to a C# project by using Add Web Reference utility but the tool fails with the error access denied to the path .. is denied. quite not sure where to check the params. any help would be appreciated.

Page cannot be displayed when I am trying to View in browser with visual studio team system 2008


I have been working on this project for weeks.  Every thing was fine.  But all of sudden today, I got this error: Page cannot be displayed when I was trying to debug as usual. 

I searched online for solution.  Only one solution was found at http://hubpages.com/hub/ASPNET-DEVELOPMENT-SERVER--WEB-PAGE-CANNOT-BE-DISPLAYED.  But when I followed its steps, I found in my hosts file, it is already like this:       localhost

I cannot continue to work without testing finished form pages.

Could somebody please help? 



Visual Studio 2008 Start Page customization

You cannot vote on your own post
Is there a way to expand the size of the Recent Projects pane in Visual Studio on the start page? I'm a BI developer and it's impossible to see enough of the SSIS solution names in the Recent Projects list to choose the correct one.
I don't want to remove the pane or clear it's contents. I want to know how to make it wider so I can actually see what's there.

Visual Studio 2010 and getting data from a microsoft access DB


I hope this is posted in the correct section of the forum, if not please accept my apologies and point me in the direction of the right forum.


The problem:


I am using Visual Studio (VS) 2010 and an Access DB, I am trying to get specific data from the DB into a gridview on a web page in VS.


Visual Studio can see the DB and it is on view in the Server Explorer and I have tested connection when setting up the two together.


In my DB I have three tables, Bookings

How to set in Visual Studio Startup Page other than Default.aspx?


Is there any opportunity to change it in Visual Studio - not in IIS?

Deny the access to subsites for FBA enabled SharePoint 2010 site using visual studio



I've created a FBA enabled site.In that I want  my FBA users would not able to acess specific subsites.And I want to acheive it programatically.Pls help me.



Properties Window Question for Visual Studio 2010

For Visual Studio 2010, how do you change the writing of the properties window categories like accessibility, appearance and behavior?  It is a grey foreground and grey background.

Fail to access Sql Management Studio after installing visual studio 2010



After installing visual studio 2010 , a tried to open my Sql management studio and i can't access it (not with user authentication nor with Microsoft authentication). How can i solve this problem?

Thank you.

The error is :

This version of Microsoft SQL Server Management Studio Express can only be used to connect to SQL Server 2000 and SQL Server 2005 Servers.

ASP.NET 4 and Visual Studio 2010 Web Development Beta 2 Overview

Many exciting changes for ASP.NET are coming in the .NET Framework version 4. This document gives an overview of many of the new features that are included in the Beta 2 release of the .NET Framework 4 and of Visual Studio 2010.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend