I am opening my list in the sharepoint designer 2010.I want to edit the dataview webpart and also adding an javascript file to show or hide columns.Where can i add the script?
can u give some information?
How to add a javascript to sharepoint dataview webpart?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Posted Jun 26, 2012, 4:06 AM EDT
http://www.learningsharepoint.com/forum/sharepoint-2010-programming/hide-columns-in-the-lists-using-dataview-webpart/
You can add the javascript inside your xslt template.
http://jeestirling.info/wp/2011/05/27/javascript-in-data-view-web-part-xslt/
http://docs.teamlink.be/collaborate/PublicBlog/Lists/Posts/Post.aspx?ID=2
http://social.technet.microsoft.com/Forums/en-US/sharepoint2010customization/thread/1cde21cf-378b-4b6c-8d59-2bd6148c07d4/