How to use new ASP.NET2 Tree Control?

  • Thread starter Siegfried Heintze
  • Start date
S

Siegfried Heintze

Is it possible to use the new ASP.NET2 Tree control by only downloading and
installing the new .NETFRAMEWORK v2? Or do you have to install visual studio
and the lastest version of IIS?

Anyone have a favorite article on how the new tree control does call backs
using web services?

Thanks,
Siegfried
 
J

Joshua Mitts

TreeView is included with ASP.NET 2.0, which means you get it with the .NET
Framework Redistributable 2.0 if you also have a compatible web server
installed that can utilize ASP.NET (IIS, Visual Web Developer 2005 Web
Server, etc.).

I'm not sure what you mean by call backs using web services, but note that
the treeview is a server-side control, meaning that it runs on the server in
the .NET Framework runtime environment. So, you can access web services
using the Framework's class libraries.
 
S

Siegfried Heintze

Oh good. How do I try it out? How does IIS know to use V2 of the .NET
framework?
 
P

Patrick.O.Ige

Well i don't think you need to have VS.NET or the latest IIS installed.
It depends what IDE you would prefer using.
Patrick
 
B

Bruce Barker

the tree control is included in the framework, so you don't need vs.

normally the treeview only does standard posts (same 1.0 controls). it has a
new property PopulateNodesFromClient, which will do a callback to the aspx
to get the nodes. to do this it uses the new ClientScriptManager class:

see
http://msdn2.microsoft.com/en-us/library/system.web.ui.clientscriptmanager

clientcallback does not use webservice calls, but rather a standard form
post (application/x-www-form-urlencoded). it uses the XMLHttpRequest
(mozilla/firefox/safari/opera), the XMLHTTP active/x object (IE), or a
hidden iframe.

as always, the code is the best documentation.


-- bruce (sqlwork.com)
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top