472,958 Members | 2,184 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 software developers and data experts.

Treeview producing invalid XHTML in ASP 2.0

I have a client who mandates XHTML compliance in the applications they
commission. Problem is that I've just found that the Treeview control
doesn't produce valid XHTML - even with the appropriate "xhtmlConformance"
settings.

The problem lies in the post back code. As you can see below, the <script>
tag is missing a 'type="text/javascript"' attribute - which is required in
XHTML.

<script>
<!--
function TreeView_PopulateNodeDoCallBack(context,param) {
WebForm_DoCallback(context.data.treeViewID,param,T reeView_Process
NodeData,context,TreeView_ProcessNodeData,false);
}
// -->
</script>

The Microsoft documentation says the Treeview is supposed to produce valid
XHTML - so it's broken. Anyone managed to create a work around? If there's
nothing easy I can do, would it be possible to intercept the HTML output by
the Treeview (or even the page) and insert the attribute using a string
replace, or something.

Failing a solution for Treeview, is there a good (and easy) third-party
alternative to Treeview that is known to produce valid XHTML?

What a pain. The reason I moved to ASP.NET 2.0 was because they said they'd
fixed this stuff. Grrr...
Nov 19 '06 #1
2 1196
Hi,

this has been reported:
https://connect.microsoft.com/Visual...edbackID=94108

Unfortunately they've decided not to fix it immediately. So most likely will
get fixed in vNext

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
"Debbie Croft" <de**********@nospamforme.comwrote in message
news:12*************@corp.supernews.com...
>I have a client who mandates XHTML compliance in the applications they
commission. Problem is that I've just found that the Treeview control
doesn't produce valid XHTML - even with the appropriate "xhtmlConformance"
settings.

The problem lies in the post back code. As you can see below, the <script>
tag is missing a 'type="text/javascript"' attribute - which is required in
XHTML.

<script>
<!--
function TreeView_PopulateNodeDoCallBack(context,param) {
WebForm_DoCallback(context.data.treeViewID,param,T reeView_Process
NodeData,context,TreeView_ProcessNodeData,false);
}
// -->
</script>

The Microsoft documentation says the Treeview is supposed to produce valid
XHTML - so it's broken. Anyone managed to create a work around? If there's
nothing easy I can do, would it be possible to intercept the HTML output
by the Treeview (or even the page) and insert the attribute using a string
replace, or something.

Failing a solution for Treeview, is there a good (and easy) third-party
alternative to Treeview that is known to produce valid XHTML?

What a pain. The reason I moved to ASP.NET 2.0 was because they said
they'd fixed this stuff. Grrr...

Nov 19 '06 #2
FYI. Installing Mircosoft's CSS Friendly Control Adaptors solves this
problem.

"Debbie Croft" <de**********@nospamforme.comwrote in message
news:12*************@corp.supernews.com...
>I have a client who mandates XHTML compliance in the applications they
commission. Problem is that I've just found that the Treeview control
doesn't produce valid XHTML - even with the appropriate "xhtmlConformance"
settings.

The problem lies in the post back code. As you can see below, the <script>
tag is missing a 'type="text/javascript"' attribute - which is required in
XHTML.

<script>
<!--
function TreeView_PopulateNodeDoCallBack(context,param) {
WebForm_DoCallback(context.data.treeViewID,param,T reeView_Process
NodeData,context,TreeView_ProcessNodeData,false);
}
// -->
</script>

The Microsoft documentation says the Treeview is supposed to produce valid
XHTML - so it's broken. Anyone managed to create a work around? If there's
nothing easy I can do, would it be possible to intercept the HTML output
by the Treeview (or even the page) and insert the attribute using a string
replace, or something.

Failing a solution for Treeview, is there a good (and easy) third-party
alternative to Treeview that is known to produce valid XHTML?

What a pain. The reason I moved to ASP.NET 2.0 was because they said
they'd fixed this stuff. Grrr...

Dec 25 '06 #3

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

Similar topics

2
by: menon | last post by:
We have developed a asp.net application using Microsoft TreeView control. On the production machine the application works fine but when the same application is diployed on a server with windows2003...
14
by: Evan Kontos | last post by:
I am trying to implement a Treeview w/an XML file and I even copied and pasted examples from MSDN but can't get them to work. Any suggestions welcome. XML File <TREENODES> <TREENODE...
5
by: lanem | last post by:
I want to display some drill-down data with a datagrid look. I can get the exact functionality I want with a treeview, but I don't like the way the treeview looks and formats the data. I want a...
1
by: Alex D. | last post by:
hey guys I found what is causing the problems with my treeview in Firefox...the answer is: treeview+dropdwonlist in the same page dont work! try this simple code and see for yourselves. you can do...
4
by: Alan Silver | last post by:
Hello, I have a site that produces 100% valid XHTML 1.0 Strict when viewed in a browser (IE, Firefox, etc). I just tried validating the site with an on-line validator, and got several errors. ...
0
by: celoftis | last post by:
Using VS2005, VB code behind, BACKGROUND I'm trying to set up a page with a TreeView of links on the left hand side of my page - when clicked I want the links to open in the remaining portion...
3
by: =?Utf-8?B?TGVzbGll?= | last post by:
Using Visual Studio 2005 SP1 I am attempting to dynamically load a treeview control. I create an XmlDataSource and then load the data source using XmlDataSource.Data. I Load my XML string into...
1
by: Chris | last post by:
I know this has been posted before but I can't find anyone with a solution, I was wondering whether any one has a solution/workaround yet for the treeview XHTML "bug". The treeview produces invalid...
3
by: dutsnekcirf | last post by:
I have a treeview control on a custom task pane in Excel. I've enable the ability to use Drag & Drop (by following this how-to) on the treeview to change the order of the nodes. The problem though...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.