473,770 Members | 3,912 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MasterPageFile in web.config - Page Designer Errors

I have set the masterPageFile property in my web.config as follows:

<pages masterPageFile= "~/Main.master" >

When I create a webform and I don't specify a masterPageFile in the aspx (so
that it uses the web.config specified master) and I go into design view for
the aspx, I get the following error:

Error Creating Control - Content
Content controls can only be used in a content page

Am I setting up the default master page incorrectly in the web.config file?

Thanks for your help

--
Brian Orrell
Pariveda Solutions
http://www.parivedasolutions.com
Feb 11 '06 #1
0 1196

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

Similar topics

0
1153
by: stumpman | last post by:
I have been using VB.NET for 2 years and have completed many applications. Recently I have experienced problems using the dataset designer and at this point I cannot use it at all. It began when I added a column to a table in the dataset designer and when I returned to the windows designer, all the objects were gone and an error message was on the form. At this point, I cannot generate a dataset without getting the error, "There were...
4
1115
by: Brian Henry | last post by:
I want to have a custom page for errors, instead of the standard page which we get now built into asp.net, so i can have the error page shown in the company's template... how would i go about doing this? anything to do with the application_error in the global.asax.vb file? thanks!
1
2591
by: Chuck Haeberle | last post by:
We have need to share functionality across all of our application web pages, so we decided to subclass from System.Web.UI.Page. When we create a new aspx, the Visual Studio designer automatically puts in the codebehind, as such: public class testsubclass : System.Web.UI.Page We change this to be: public class testsubclass : OurProject.Library.BaseWebPage Which is defined as:
0
848
by: Ola Johansson | last post by:
I got a strange problem. I have specified a custom error page in my Web.Config file and it works great if i get an exception anywhere on my site. The problem i got is that i do some checks in the "Session_Start" method in global.asax. And when i get an exception there my custom error page wont show up. Its not a major problem but its kinda strange. Anyone know how to solve it or just explain why it is this way?
1
913
by: Chuck Bowling | last post by:
I'm trying to lay out an ASP.NET page in VS 2003. Is it normal that controls can't be positioned inside of a panel control in grid design view? Whenever I try to move anything around it stays centered at the top of the panel...
1
1015
by: Keith Patrick | last post by:
For some reason, in asp.net 2.0 (beta 2), any time I have an unhandled exception, my page will not handle the error. I have tried setting AutoEventWireup to true, false, removed it. I've tried taking out the <customErrors> configuration and various permutations of values for it. I've put breakpoints in an OnError overload as well as a Page_Load handler. I've even tried manually adding the error handler during OnInit. Still, if I...
2
4936
by: Eytch | last post by:
Hey: I am a rookie developer so please bear with me. I want to develop a small application for my office but I am having trouble clearing a page that has required fields. If I make a textbox required and then trigger it by not entering in any data the page seems to be totally locked. (Which makes sense because the Textbox is required) My question is: How can I code a button that overrides the required fields
1
1198
by: priya0123 | last post by:
Hi, We are writing an application in asp.net 2.0. We have used menu control and made it a usercontrol. I have Partial cached the user control. After caching the user control, this is being used in a Master Page. Everything was working fine without caching but after caching the control, it is throwing null referance errors randomly.
3
2255
by: steve | last post by:
VS designer has started to complain about the following errors : Object reference not set to an instance of an object. Instances of this error (2) and Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index Instances of this error (12)
0
9439
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10237
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10071
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9882
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8905
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5326
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3987
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3589
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2832
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.