CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2002
    Posts
    15

    Can I use TreeView (IE Web Controls) in a Web Service Application?

    Hello,

    I have a Web Service Application. I need to use a Web Control, the Treeview. But in a Web Service Application, I only can view the Treeview that is in Windows Forms but I don´t want it.
    I need the Web Control because I want to use the properties: TreeNodeSrc, TreeNodeXsltSrc, ...
    I have installed the IE Web Controls, and in the directory /bin of my application I have the Microsoft.Web.UI.WebControls.dll that is necessary for the TreeView Control.
    If I declare a treeview in my Web Service application, as following:
    protected Microsoft.Web.UI.WebControls.TreeView Tree;
    I receive the error:
    The type or name space 'Web' doesn´t exist in the class or name space 'Microsoft'.
    In a Web Application this control works good, without errors..

    How can I use a TreeView Web Control in a Web Service Application?

    Thanks in advance

  2. #2
    Join Date
    Aug 2004
    Location
    Land of sunshine and June Gloom
    Posts
    171

    Re: Can I use TreeView (IE Web Controls) in a Web Service Application?

    Goto Add References on the menu and see if you can add a reference to

    Microsoft.Web.UI.WebControls

  3. #3
    Join Date
    May 2002
    Posts
    15

    Re: Can I use TreeView (IE Web Controls) in a Web Service Application?

    Hello,

    Thanks, I have added the reference to Microsoft.Web.UI.WebControls, and now it works good.

    Bye

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured