Treeview webcontrol problems with javascript

G

Guest

Hi All,
I am facing a prob with treeview with check boxes
When ever a javascript funtion is associated with Treeview, I am not able to
retrice the Values of checkboxes in the tree. When no Javascipt function is
associatead, every thing works fine.
Is it something to do with viewstate??

any help appreciated?
Sun

<ie:TreeView runat="server" id="TreeView1" AutoSelect="True">
<ie:TreeNode CheckBox="True" Text="My first Tree Node">
<ie:TreeNode CheckBox="True" Text="My second Tree Node">
<ie:TreeNode CheckBox="True" Text="My second Tree Node"></ie:TreeNode>
<ie:TreeNode CheckBox="True" Text="My second Tree Node"></ie:TreeNode>
</ie:TreeNode>
<ie:TreeNode CheckBox="True" Text="My second Tree Node"></ie:TreeNode>
<ie:TreeNode CheckBox="True" Text="My second Tree Node"></ie:TreeNode>
</ie:TreeNode>
</ie:TreeView>

<script for="TreeView1" event="oncheck">
var s = ""
var ev = window.event.srcElement
alert(ev);
</script>
 
C

Cor Ligthert

Sun,

I see no vbnet language part, do you have that as well?

I see in your current code by the way no any relation to that.


Cor
 

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

Top