Hi,
Is it just me or is it impossible to generate valid HTML code with
Visual Studio 2003 .net? I am specially thinking about the
DropDropList. When rendered it puts a language="javas cript" attribute
in the select. That is one example of an invalid tag attribute.
What can I do to ensure valid html (preferable xhtml)?
_Can_ I do something?
--
Thomas Due
Software Developer
Scanvaegt Nordic A/S
Posted with XanaNews version 1.16.3.1 2 5455
I'm using XHTML 1 transitional -- it's doable, but one has to do some rewriting; I tried for strict for a while and gave up -- too many controls just couldn't be convinced to not sprinkle extra bits I didn't want, and I didn't have time/money to rewrite the entire control library.
The biggest problem I ran into was the HTML editor/designer rewriting my HTML (like taking all of <img /> and turning them into <img> etc.) If you beat on it long enough you can get it to stop most of this --
If you really want to use XHTML, I think there's a company selling XHTML controls for ASP.NET, I've never tried them; do a google. I'm sure (hope) Whidbey will be better able to generate standard markup. I think there's an intellisense on the web for XHTML for Visual Studio -- yet another google -- that is helpful.
Good luck.
"Thomas Due" <tdue@mail_remo ve_.dk> wrote in message news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Hi,
Is it just me or is it impossible to generate valid HTML code with
Visual Studio 2003 .net? I am specially thinking about the
DropDropList. When rendered it puts a language="javas cript" attribute
in the select. That is one example of an invalid tag attribute.
What can I do to ensure valid html (preferable xhtml)?
_Can_ I do something?
--
Thomas Due
Software Developer
Scanvaegt Nordic A/S
Posted with XanaNews version 1.16.3.1
another big problem is aps.nets use of underscore in system ID tags.
-- bruce (sqlwork.com)
"Scott" <no*****@this-is-extra-hotmail.com> wrote in message news:eU******** ******@TK2MSFTN GP12.phx.gbl...
I'm using XHTML 1 transitional -- it's doable, but one has to do some rewriting; I tried for strict for a while and gave up -- too many controls just couldn't be convinced to not sprinkle extra bits I didn't want, and I didn't have time/money to rewrite the entire control library.
The biggest problem I ran into was the HTML editor/designer rewriting my HTML (like taking all of <img /> and turning them into <img> etc.) If you beat on it long enough you can get it to stop most of this --
If you really want to use XHTML, I think there's a company selling XHTML controls for ASP.NET, I've never tried them; do a google. I'm sure (hope) Whidbey will be better able to generate standard markup. I think there's an intellisense on the web for XHTML for Visual Studio -- yet another google -- that is helpful.
Good luck.
"Thomas Due" <tdue@mail_remo ve_.dk> wrote in message news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Hi,
Is it just me or is it impossible to generate valid HTML code with
Visual Studio 2003 .net? I am specially thinking about the
DropDropList. When rendered it puts a language="javas cript" attribute
in the select. That is one example of an invalid tag attribute.
What can I do to ensure valid html (preferable xhtml)?
_Can_ I do something?
--
Thomas Due
Software Developer
Scanvaegt Nordic A/S
Posted with XanaNews version 1.16.3.1 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Shyamal Prasad |
last post by:
Hi,
Is there anyway to write JSP files as valid HTML of any sort. What I
want to know is if JSP files are some sort of valid XML with a DTD
that will check contents. Perhaps JSP files are valid XHTML documents?
Any pointers would be appreciated. Searching the web seems to be
leading me nowhere quickly.
Cheers!
|
by: Hostile17 |
last post by:
Consider the following HTML.
----------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<title>Untitled</title>
|
by: Jukka K. Korpela |
last post by:
As well all know, valid markup is important... but when trying to find
a convincing modern argument in favor of this, I found pages like
http://www.htmlhelp.com/tools/validator/reasons.html
which was very nice when Netscape ruled the World Wide Web, and
http://valet.htmlhelp.com/page/why.html
which is very suggestive but does not really give any factual example.
Is there something to be _shown_ to people who ask "why validate?"?
A page...
|
by: Neal |
last post by:
According to the specs
(http://www.w3.org/TR/html401/struct/links.html#h-12.2), the <a> element
requires an end tag. And so, when we use <A NAME="foo"> in HTML 2.0 to
4.01, it won't validate, it'll want to find the </A> tag.
However, when I write a document containing, say, <a name="foo" /> it
validates in XHTML 1.0.
I'm obviously missing something here, as this confuses me somewhat. Does
the magical / make the empty a element valid?...
|
by: Tao |
last post by:
I just upgraded .NET framework to 1.1 and VS.Net to 2003 version and
tried to test it out. I created an ASP.NET project using the wizard
and tried to run
it by hitting "F5". I got an exception: "Specified cast is not valid."
The only thing i put there was a "test this." inside the form. What
might be the problem here?
Thanks in advance.
The Exception:
| |
by: thomas_jedenfelt_1 |
last post by:
Hi everyone,
Is the W3C HTML Validator in error when it returns <br /> as valid
for HTML 4.01 Strict doctype?
In March 2004 , the Validator returned <br />, <hr /> and <img />
as invalid for HTML 4.01 Strict.
Liam Quinn said "You can't mix HTML and XHTML. You need to choose
one or the other syntax."
|
by: Peter Hardy |
last post by:
Hi guys,
Sorry for the cross-post but I got no response in the asp.net newsgroup.
I am trying to develop a mini e-learning application where the user provides
content for each page. Eventually, I'd like to shift to using templates but
at the moment the users is just entering content using html. Whats the best
way to allow the user to do this and whats the best way of ensuring the html
is valid before I store it in my database / xml...
|
by: Alan Silver |
last post by:
Hello,
I am a complete and utter newbie at ASP.NET, so please forgive any
stupid questions ;-)
I am just trying to get my head around the whole web forms business, but
have run into a problem. I have been a web designer for many years and
have always made a specific point of writing HTML that is valid
according to W3C specifications. With web forms, the .NET framework
seems to generate some of the HTML, and what it generates is not...
|
by: Robert Morgan |
last post by:
|I'm trying to run a query on a database using php and postgres functions
||<?php
db_connect();
$stat = pg_exec($connstr,"SELECT WSID from tblWorkstation ");
while ($row = pg_fetch_rows($stat))
{
print("<option> $row</option>");
}
?>
|
by: henry |
last post by:
Folks
Here's a skeleton, generic HTML page, call it "index.php". You'll see a bit
of php code in the middle:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |