CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 7/18/2007 11:47:00 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 36 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
adam_jcm
Asp.Net User
TreeView XHTML Transitional validation error7/18/2007 11:47:00 AM

0/0

Hi there,

 I have a website where I'm linking a treeview control to a sitemapdatasource in order for the users to navigate the site.

It works perfectly, however when I try validating the page in the W3C validator it displays an error:

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

required attribute "type" not specified...

and it is absolutely right!! I tried searching the forum but did not find any thing usefull. I even added "<xhtmlConformance mode="Transitional"/>" in the web.config file but still nothing.

does anyone know how to fix this??

Thanks, Adam

ongj
Asp.Net User
Re: TreeView XHTML Transitional validation error7/18/2007 12:42:07 PM

0/0

adam_jcm:
does anyone know how to fix this??

Hi Adam,

Have you checked out the ASP.NET css-friendly control adapters kit? There's a TreeView adapter.

http://www.asp.net/cssadapters/

The markup rendered by the kit's adapters is "designed to work on pages adhering to the XHTML 1.1 Strict or earlier standards. "


Jason
MCP
ASPNETWorld.com
adam_jcm
Asp.Net User
Re: TreeView XHTML Transitional validation error7/18/2007 1:27:46 PM

0/0

Tks for the answer.

I had seen this on the forum search I had done earlier. I'm looking for a simpler solution, some piece of code or something.

It is my opinion that MS should provide XHTML compliant controls with asp.net. I find a least a litle bit strange, that the only control that does not support XHTML transitional is Treeview!!Super Angry

If that is the case I think I will have to use some other navigational control...

If anybody has other suggestions they will be appreciated....Smile

Amanda Wang - M
Asp.Net User
Re: TreeView XHTML Transitional validation error7/20/2007 8:17:32 AM

0/0

Hi Adam,

As for this problem, it is like that there is no the "type" attribut in the head section of the script.

You could instead of the "script"(which is deprecated), you need to use like this: <script type="text/javascript">  

 

If you find have any further findings or questions, please feel free to post here.

Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
Pro ASP.NET 2.0 in C# 2005: Create Next-generation Web Applications with the Latest Version of Microsoft's Revolutionary Technology Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1426, Published: 2006

Web:
TreeView XHTML Transitional validation error - ASP.NET Forums Re: TreeView XHTML Transitional validation error. 07-18-2007, 8:42 AM. Contact ... Re: TreeView XHTML Transitional validation error. 07-18-2007, 9:27 AM ...
Validation (XHTML 1.0 Transitional): Attribute 'leftmargin' is not ... and when I load their asp pages I am getting this error Anybody has any idea why is the XHTML validation failing Thanks in Advance -Newbie ...
Manuel Abadia's ASP.NET stuff - XHTML Validation May 31, 2006 ... NET TreeView control fails validation (XHTML 1.0 Transitional)! When a TreeView is rendered, some script is injected in the page:.




Search This Site:










get size of data returned in sql query

is there a way to disable autopostback on a button control?

dynamically generating listitems for a select drop down from a dataset

how to save the status of a <asp:listbox> after postback?

firefox onclick event prevents code behind firing

binding data to a label

valueschanged event

valid url expression

capture subset of string.

enter key + cursor focus

one xml or table displaying 7 different banner ads

checking against keywords

how to use ftp to transfer file from client to server...

adding controls programatically without using a placeholder

dropdownlist's autopostback causes javascript "access denied"

delegate for dropdownlist select index change event in user control

site map w/dynamic pages ?

tell me web forms internal of asp.net ?

data entry table in c#.net

? microsoft® office html and xml reference

create search box

i need to download data to excel

textbox control problems with < char

a retrieve question.

problem with dropdownlist

lossing page title

fragment caching problem on postback

add sum with checkbox

bind data with textboxes

autopostback query string with gridview issue

  Privacy | Contact Us
All Times Are GMT