override render and webresource.axd

Nov 2, 2007 at 4:59 PM

I want to tweak the output of the cssfriendly treeview control by overriding render. Problem is, when I do so, the webresource.axd references no longer work so the tree will no longer expand, etc.

Try this yourselves:

public class MyTreeView : CSSFriendly.TreeViewAdapter
protected override void Render(HtmlTextWriter writer)

Wire-up your new MyTreeView control using the .browser file and try it. The expand/contract won't work on the tree. This seems to be because the webresource.axd references to the embedded .js files do not serve the js to the browser. This can be tested by manually requesting the files with arguments in your browsers. They will return 404 not found for the resources files for the treeview.

Has anyone else come across this and solved it?