473,587 Members | 2,229 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VWD gives bogus validation errors unless MasterPageFile is specified in the @Page directive

Hello,

I have a site that uses master pages. To enable simple switching of the
master page, and to avoid potential inconsistencies between pages, I set
the master page file in the web.config file. This works fine, but causes
VWD to give loads of bogus validation errors ("element HTML occurs to
few times" etc), as it doesn't seem to know that there's a master file
being used.

Any way around this? TIA

--
Alan Silver
(anything added below this line is nothing to do with me)
Feb 23 '06 #1
1 1117
In article <eJ************ **@nospamthanky ou.spam>, Alan Silver
<al*********@no spam.thanx.inva lid> writes
Hello,

I have a site that uses master pages. To enable simple switching of the
master page, and to avoid potential inconsistencies between pages, I
set the master page file in the web.config file. This works fine, but
causes VWD to give loads of bogus validation errors ("element HTML
occurs to few times" etc), as it doesn't seem to know that there's a
master file being used.

Any way around this? TIA


As usual, found the answer just after posting. It's a bug. First, you
need to have the MasterPageFile set in the page directive, and second
you need to keep the master page open in the editor. then the problem
goes away.

http://blogs.msdn.com/mikhailarkhipo...21/410557.aspx has
details of part of this problem.

--
Alan Silver
(anything added below this line is nothing to do with me)
Feb 23 '06 #2

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

Similar topics

2
1367
by: Keith Russell | last post by:
Hi. I am trying to learn a little bit of XML (and XHTML), using "XHTML Black Book" by Steven Holzner. I am getting numerous validation errors from the XML examples in the book. I have tried validating using three different XML editors, and the result is the same. Is anyone familiar with this book? Is it full of errors or outdated? I can...
0
1366
by: Igor | last post by:
Hi all! As many of you, I have a big VB.NET solution and quite often get bogus build errors out of the blue. This isn't declared, that is not a property of some shit and so on... It's very frustrating and the only solution for me was to reload a solution which takes time... I've browsed through usenet to find some solution, but nothing......
2
5171
by: Sudip Chakraborty | last post by:
Is there a way to see constraint validation errors while loading xml into a DataSet ? I'm interested in the line number in the xml file which is causing the error. I've enclosed the relevant stack trace below. at System.Data.DataSet.FailedEnableConstraints() at System.Data.DataSet.EnableConstraints() at...
0
976
by: psb | last post by:
about a year ago, I was head deep in vb6/com+ hell. THEN, I started doing asp.net development and went the opposite direction by only putting transactions in the stored procs. Unfortunately, I can't isolate everything in one db call. I started testing the Transaction=txType attribute in the Page directive. <%@ Page Language="vb"...
2
15877
by: Tim Zych | last post by:
I'm trying to stop .Net from validating data entered into a textbox. When I enter < or > .Net returns an error: potentially dangerous Request.Form value was detected from the client... so a search on google indicates a couple of options: 1. Add validateRequest = "false" in the page directive. So I add it: <%@ Page Language="vb"...
2
1251
by: lister | last post by:
I have lots of form validation going on. When something fails validation, I highlight the offending field and write an error message at the bottom of the form. This was fine until I was trying to click on a submit button *of my own form* and wondering why nothing was happening. I had made a mistake in one of the fields so it had...
7
2386
by: jimrich | last post by:
Hi, using firefox browser and have a FrontPage built site: www.irenezart.com. used W3C markup validation service which came up with lots of errors in my index page. then I changed the doctype to strict and the validator came up with even more errors! I'm not very HTML literate so the errors are foreign to me and i do not know what to do...
3
2265
by: hardieca | last post by:
Hi, I've created an n-tier app where validation rules reside in the business layer. When a webform is saved, a business object examines its state, and if some property is invalid, throws a custom exception (ValidationException) The exception bubbles up to the UI where it gets trapped: Private Sub Page_Error(ByVal sender As Object,...
4
2551
by: Lit | last post by:
Hi, I have a web page that does not fit all on the screen vertically. At the bottom I have a submit button, When I click on the Submit button and have Validation Errors at the top. the user is unable to see the Errors on top of the page.
0
7915
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7843
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...
0
8339
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...
0
8220
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...
0
6619
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...
0
5392
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2347
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
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1185
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...

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.