List Info

Thread: TreeView without PostBack?




TreeView without PostBack?
user name
2006-04-19 00:20:04
I thought I wanted was simple.  I want to use a TreeView as
a selection
control, but only to select a single leaf node in a
hierarchy.  So after
searching google, I thought this would work:

<asp:TreeView runat=server id=foo AutoPostBack=false
/>

But to no avail.  AutoPostBack is no longer a property. 
Anyone know why?

I want certain nodes to be 'selectable', but I want the
control to hold hte
selection state so I can get it when I postback an entire
form, not postback
immediately (even if it just flickers the user screen).  Is
this possible?
I have *no* events (server or clientside) registered so I
have no idea why
its posting back anyway.  I've tried a couple of different
hacks:

1.      Set the SelectAction to None (but this removes the
ability to
select)

2.      Set the NaviateUrl to javascript:none(0), but the
postbacks still
happen (and the link inlcudes the postback).

TIA



Thanks,

Shawn Wildermuth
 <blocked::http://adoguy.com/> http://adoguy.com
C# MVP, MCSD.NET, Author and Speaker



===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )