treeview+checkbox+postback+viewstate

A

Alex D.

Hi. I have a treeview with some checkboxes and I need to postback every time
a checkbox is checked or unchecked automatically, so I do this:
<asp:TreeView onclick="mypostback(event)" ID="TreeView1" runat="server"
OnTreeNodeCheckChanged="TreeView1_TreeNodeCheckChanged" ShowLines="True"
ImageSet="Simple" Font-Bold="False" Font-Italic="False" Font-Names="Verdana"
Font-Size="XX-Small" NodeIndent="40" ToolTip="Click to see full
description.">

<LeafNodeStyle ForeColor="#FF8080" BackColor="White" />

<HoverNodeStyle Font-Bold="True" Font-Size="XX-Small" BackColor="White"
BorderColor="Black" />

<SelectedNodeStyle Font-Bold="True" Font-Size="X-Small" />

<NodeStyle ForeColor="Black" />

</asp:TreeView>

Now, I dont really need the viewstate info that sometimes can be very big,
but if I turn off the viewstate then the TreeView1_TreeNodeCheckChanged wont
execute. Is there any workaraound for this?

Thanks,

Alex.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top