473,946 Members | 22,845 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XHTML 1.1 is impossible with ASP.NET 2.0?

Cat
I created a web site, and I thought I followed XHTML 1.1 rules. But
when I validated the pages, I got some error messages. I found that
those codes are automatically generated parts by ASP.NET.

There is no attribute "name".
<form name="form1" method="post" action="Default .aspx" id="form1">
And input is not allowed here

Since ASP.NET buttons should be placed in server side forms, I don't
know how to remove this error. So, what this comes down to is that it
is (normally) impossible to create XHTML 1.1 page with ASP.NET 2.0? I
tried to search the internet but all I found was to create a hacked
assembly and place it on the server. But this is impossible since I'm
not the administrator of my hosting provider's computer. Is there any
normal way to suppress the generation of name tag and hidden input
tag? Or should I not use XHTML 1.1 with ASP.NET 2.0?

Thank you.

Feb 5 '07 #1
2 1205
there is no xhtml 1.1 browser, so some compromise is necessary. to
access the form the asp.net client code uses document.forms[name]
syntax, so a name attribute is required. if only uplevel support was
needed they could switch to document.getEle mentById, but the basic code
supports older browsers that do not support document.getEle mentByName.

xhtml 1.1 does support <input type="hidden">, so I don't know what your
trouble is.
-- bruce (sqlwork.com)

Cat wrote:
I created a web site, and I thought I followed XHTML 1.1 rules. But
when I validated the pages, I got some error messages. I found that
those codes are automatically generated parts by ASP.NET.

There is no attribute "name".
<form name="form1" method="post" action="Default .aspx" id="form1">
And input is not allowed here

Since ASP.NET buttons should be placed in server side forms, I don't
know how to remove this error. So, what this comes down to is that it
is (normally) impossible to create XHTML 1.1 page with ASP.NET 2.0? I
tried to search the internet but all I found was to create a hacked
assembly and place it on the server. But this is impossible since I'm
not the administrator of my hosting provider's computer. Is there any
normal way to suppress the generation of name tag and hidden input
tag? Or should I not use XHTML 1.1 with ASP.NET 2.0?

Thank you.
Feb 5 '07 #2
For this particular point try :
http://msdn2.microsoft.com/en-us/library/ms178159.aspx
(AFAIK this is not an XHTML 1.1 issue).

What is the XHTML 1.1 feature you need (I don't really know myself whay it
offers) ? If none, I would stick to XHTML 1.0 (possibly strict)

"Cat" <ty*******@gmai l.coma écrit dans le message de news:
11************* *********@a75g2 00...legr oups.com...
>I created a web site, and I thought I followed XHTML 1.1 rules. But
when I validated the pages, I got some error messages. I found that
those codes are automatically generated parts by ASP.NET.

There is no attribute "name".
<form name="form1" method="post" action="Default .aspx" id="form1">
And input is not allowed here

Since ASP.NET buttons should be placed in server side forms, I don't
know how to remove this error. So, what this comes down to is that it
is (normally) impossible to create XHTML 1.1 page with ASP.NET 2.0? I
tried to search the internet but all I found was to create a hacked
assembly and place it on the server. But this is impossible since I'm
not the administrator of my hosting provider's computer. Is there any
normal way to suppress the generation of name tag and hidden input
tag? Or should I not use XHTML 1.1 with ASP.NET 2.0?

Thank you.

Feb 5 '07 #3

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

Similar topics

1
1676
by: Albert Wagner | last post by:
Opera 7 doesn't appear to support the <script> element in XHTML. Does this mean that it impossible to use Javascript with XHTML? Or is there a workaround, such as the legacy method, in HTML, of commenting out the Javascript code. -- Then there was the man who drowned crossing a stream with an average depth of six inches. -- W. I. E. Gates
20
3324
by: John Bokma | last post by:
Hi, I converted most (not all) of my pages at http://johnbokma.com/ to XHTML. I thought this was just a small change from 4.01. However someone stated quite vaguely that my pages are *not* XHTML since when a UA requests a page and states that it can handle XML the server still responds with a Content-type: text/html I see that http://www.w3.org/TR/xhtml1/ does the same (Firebird)
6
2350
by: NotALamer | last post by:
I'm having trouble getting the w3c validator to validate some code as XHTML 1.1 compliant so I though I'd seek help. The validator doesn't give me any error messages for this code, it just tells me it isn't compliant. I realize it's not that nice to look at, but it's generated by a php script and trying to make the html look nicer would make the script look worse. <?xml version="1.0" encoding="iso-8859-1"> <!DOCTYPE html PUBLIC...
21
4221
by: kaeli | last post by:
Hey all, Does anyone know if all the newer browsers support XHTML? My main target is IE6/NN6+(firefox/mozilla/etc), but I'd like to know if Safari, Opera, Konqueror, and other browsers also support it. Anyone know of any major compatibility problems with XHTML? How do older browsers, such as Netscape 4, react to the doctype? TIA
1
7913
by: Kenneth | last post by:
Okay, I've been scouring Google for hours looking for a solution to this problem, but as of yet I can't find one. XHTML Transitional seems to specify that I can no longer set a table's height to 100% and vertically center content inside of it. Therefore, I'm seeking a way, preferably in CSS to vertically center a site. Here's more of a visual to what I have: /********************************
2
2885
by: mike | last post by:
regards: I follow the following steps to converting from HTML to XHTML http://webpageworkshop.co.uk/main/xhtml_converting My parser is http://htmlparser.sourceforge.net/ Xhtml version is 1.0 from http://nds.nokia.com/uaprof/N6600r100.xml but nokia mobile browser cannot identify the converted file(XHTML1.0). Is there something wrong with my procedure.
3
1437
by: Frank Thomas | last post by:
So, where are we (as an industry) with regards to XHTML? I've been going through a book published in 2002 that promotes the idea that we should all be looking to create new projects as compliant with XHTML (at least using the transitional DTD). Is the XHTML standard something developers at large are taking seriously? Has Microsoft taken it seriously and included XHTML compliance features into VS.NET 2003 (will they for the next version)?...
15
4370
by: Zhang Weiwu | last post by:
http://www.w3.org/MarkUp/2004/xhtml-faq provided a trick to serve xhtml webpage to IE as application/xml I used that trick and now every one of my xhtml webpage have following first 4 starting lines: <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="curseIE.xsl"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
10
1744
by: Terrence Brannon | last post by:
Hello, The most common way of dynamically producing HTML is via template engines like genshi, cheetah, makotemplates, etc. These engines are 'inline' --- they intersperse programming constructs with the HTML document itself. An opposite approach to this form of dynamic HTML production is called push-style templating, as coined by Terence Parr:
0
9975
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
11552
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
10679
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
9873
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
7404
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6097
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...
0
6318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4525
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3526
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.