472,119 Members | 2,016 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,119 software developers and data experts.

TreeView checkboxes AutoPostBack with AJAX


There is a known problem with TreeView checkboxes in ASP.NET: they can't do AutoPostBack. So I've solved this problem like this:

<script language="javascript" type="text/javascript">

function postbackOnCheck()
var o = window.event.srcElement;
if (o.tagName == 'INPUT' && o.type == 'checkbox' &&
o.name != null && o.name.indexOf('CheckBox') > -1)


<asp:TreeView onclick="postbackOnCheck()" ID="treeContent"
runat="server"> ... And so on ... </TreeView> This way I get full postback each time the user checks\unchecks the checkbox.

But now I want to modify this code in order to make use of AJAX: I don't want the FULL postback, but I only want the tree itself to be updated. Of course, I've started by placing it inside the UpdatePanel. But what now? Can somebody help me with this issue?
Mar 20 '07 #1
0 5298

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Michael A. Covington | last post: by
1 post views Thread by Trevor | last post: by
10 posts views Thread by Steven | last post: by
1 post views Thread by Srinivasa Raghavan | last post: by
1 post views Thread by nicholas | last post: by
1 post views Thread by Mark | last post: by
8 posts views Thread by Matt MacDonald | last post: by
7 posts views Thread by rn5a | last post: by
1 post views Thread by Dmitry Perets | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.