473,387 Members | 1,812 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.

v2 & self-closing meta tags

Hi,

Is there a way to prevent ASP.NET 2 from stripping off the self-closing meta
tags...?

E.g.

<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1" />

is turned into

<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">

on my development machine, on my test box and on my live site hosted at a
remote ISP.

This is causing the site to fail XHTML validation.

Any assistance gratefully received.

Mark
Jul 14 '06 #1
4 1467
Hi Mark,

That's odd behaviour. Is it possible that ASP.NET is detecting the test
client as a downlevel browser and doing something weird?

Maybe there's a way to tell the page to treat every request as an uplevel
browser to deliver valid XHTML?

Ken
Microsoft MVP [ASP.NET]

"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:uX**************@TK2MSFTNGP04.phx.gbl...
Hi,

Is there a way to prevent ASP.NET 2 from stripping off the self-closing
meta tags...?

E.g.

<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1" />

is turned into

<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">

on my development machine, on my test box and on my live site hosted at a
remote ISP.

This is causing the site to fail XHTML validation.

Any assistance gratefully received.

Mark

Jul 14 '06 #2
"Ken Cox [Microsoft MVP]" <BA**********@newsgroups.nospamwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
That's odd behaviour.
Yes...
Is it possible that ASP.NET is detecting the test client as a downlevel
browser and doing something weird?
No idea...
Maybe there's a way to tell the page to treat every request as an uplevel
browser to deliver valid XHTML?
Again, I have no idea...

Is anyone else experiencing it...?
Jul 14 '06 #3

Jul 14 '06 #4
"Robert Porter" <ro**********@nospam.rp2c.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>What is the DOCTYPE property set to?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Jul 14 '06 #5

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

Similar topics

0
by: RJS | last post by:
Hi all, I can't get a py2exe compiled app to run with numarray (numarray-0.5.win32- py2.2). Also wxPythonWIN32-2.3.3.1-Py22 and ActivePython-2.2.1-222. In the sample below, commenting out...
2
by: Jody Burgess | last post by:
Hi; I am writing my first python program and would like to know how to change stdout to refer to my default printer or any other printer on my network. The other question is, Is there an API set...
1
by: C. Titus Brown | last post by:
Hi all, while playing with PBP/mechanize/ClientForm, I ran into a problem with the way htmllib.HTMLParser was handling encoded tag attributes. Specifically, the following HTML was not being...
1
by: w.p. | last post by:
Hello! I want change default tab traversing in my app. But i don't know how to do it :( Belowe i include simple example - i want change default tab order: radiobutton "mode11" -> radiobutton...
5
by: Jan Danielsson | last post by:
Hello all, I have written a simple whiteboard application. In my application, I want to be able to set draw attributes. This part works. I have a dictionary object which contains stuff like:...
7
by: Michael Galvin | last post by:
I am trying to use Python to send to the printer a calender filled with a mix of text and simple graphics. I want to draw on the printed page something like a table with 6 rows and 7 columns to...
9
by: sonal | last post by:
Hi all, I hv started with python just recently... and have been assigned to make an utility which would be used for data validations... In short we take up various comma separated data files for...
7
by: Kirt | last post by:
i have walked a directory and have written the foll xml document. one of the folder had "&" character so i replaced it by "&amp;" #------------------test1.xml <Directory> <dirname>C:\Documents and...
3
by: Skink | last post by:
Hi, I created simple property classes with editing option, but since i'm not too much experienced in PyQt4 i'd like to ask if i handle ColorProperty changing right. Any other Property has its...
9
by: find clausen | last post by:
How can I use this: if (!zxmes && self.name != "menu") and add if (zmes == 1) if (!zxmes && self.name != "menu" || zmes == 1) and make it work.
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: 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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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...

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.