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... 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...
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... This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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.
...
|
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...
|
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...
|
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...
|
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...
|
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=()=>{
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
| |