treeview and postback
- by Luis
hi
I have a treeview, and already the javascript code to postback the page. Because when i select the father , auto-select the children.
this is my html code
<script>
function foo()
{
var o = window.event.srcElement;
if (o.tagName == "INPUT" && o.type == "checkbox")
{
__doPostBack("","");
}
}
</script>
<asp:TreeView ID="HierarchicalTreeView" runat="server" OnSelectedNodeChanged="HierarchicalTreeView_SelectedNodeChanged"
ShowLines="True" ExpandImageToolTip="Fechar "{0}"" CollapseImageToolTip="Fechar "{0}""
ExpandDepth="1" OnTreeNodeCheckChanged="HierarchicalTreeView_TreeNodeCheckChanged"
EnableClientScripts="true" onClick="foo()">
<NodeStyle CssClass="text" />
<SelectedNodeStyle CssClass="text" Font-Bold="true" />
</asp:TreeView>
How can i prevent from postback all page, and only the treeview???, so dont 'refresh' the page