www.webdeveloper.com
Results 1 to 6 of 6

Thread: Tree View

Hybrid View

  1. #1
    Join Date
    Jul 2004
    Posts
    61

    Tree View

    I can't seem to get my tree view working on my asp.net(vb) page. I downloaded the component and followed the steps to compile and add it to visual studio.

    I then added the component to a test page and then added some nodes. Everything up to that point seems to be working ok except that after I compile the code and run it on a webpage, it displays the tree as text across the page. No dropdown is available. What am I doing wrong?

    Thanks

  2. #2
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222
    this is running off of the same machine which you run vs.net on?

  3. #3
    Join Date
    Jul 2004
    Posts
    61

    Tree View

    Yeah, sorry, forgot to mention that. I downloaded the component from an asp.net website. It required that I run the webmatrix.msi and then click on the build.bat file to create the .dll file. Next it required me to follow these directions:

    Before I get into the stuff below, I get this error when I compiled the component to make the .dll

    src\treeview.cs(1193,13): warning CS0618:
    ‘System.Xml.Xsl.XslTransform.Transform(System.Xml.XPath.XPathNavigator,
    System.Xml.Xsl.XsltArgumentList, System.IO.Stream)’ is obsolete: ‘You should pass XmlResolver to Transform() method’


    Do you know what this means?




    ***************************************************************

    =====================================
    Internet Explorer Web Controls README
    =====================================
    Last updated: 1/14/2002

    Thank you for downloading the IE Web Controls source code release! The Src
    folder contains the source code for the IE MultiPage, ToolBar, TreeView, and
    TabStrip controls, along with related base classes and design-time support.

    To build the IE Web Controls:

    1. Make sure you have installed the .NET Framework SDK v1.0 or v1.1
    2. Run Build.bat, which will create a build folder in this directory.
    The build folder contains Microsoft.Web.UI.WebControls.dll and a
    Runtime directory of supporting files.

    To run the IE Web Controls:

    1. Copy the contents of the Runtime directory to the webctrl_client\1_0
    directory under your top-level site directory. For example, if your
    site root is c:\Inetpub\wwwroot, type this at the command prompt:

    xcopy /s /i .\build\Runtime c:\Inetpub\wwwroot\webctrl_client\1_0 /y

    This will create the following directory structure under the site:

    /webctrl_client/1_0
    MultiPage.htc
    TabStrip.htc
    toolbar.htc
    treeview.htc
    webservice.htc
    webserviced.htc
    [images]
    [treeimages]

    2. Create a new web application in IIS and copy the contents of the
    samples directory to this application directory. For example:

    xcopy /s /i .\samples c:\Inetpub\wwwroot\sampleapp /y

    3. Create a /bin subdirectory for the application and copy the file
    Microsoft.Web.UI.WebControls.dll to this directory.

    The contents of the application will be as follows:

    /sampleapp
    multipage.aspx
    state_city.xml
    tabstrip.aspx
    toolbar.aspx
    treeview.aspx
    treeview_bound.aspx
    /bin
    Microsoft.Web.UI.WebControls.dll

    4. Request the sample pages from your Internet Explorer web browser, for
    example: http://localhost/sampleapp/multipage.aspx

    For additional documentation and samples visit:
    http://msdn.microsoft.com/library/de...rols_entry.asp
    **************************************************************
    When I added the .dll file to my visual studio.net, I was then able to drag and drop the tree view onto the stage of my .aspx webpage. When I followed the directions on how to configure it, I then compiled it and then ran it through my IE browser. All it displayed was text and not the tree view. I'm thinking that the .dll wasn't created correctly because it gave me a warning when it compiled.

  4. #4
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222
    no idea... sorry . Try restarting iis. Make sure your default files are set. I am thinking it is a screwed up iis setting. Is it just the tree view or asp.net in general? If its just the tree view then iis is not handling the component correctly I think, if its all asp.net then its definatly a setting. I can't offer much more support then this, I do not use components that much.

  5. #5
    Join Date
    Jul 2004
    Posts
    61
    Yeah, I think you are right. I've tried looking up through yahoo and google with the error message that I received and the only thing I was seeing is that XP might be to blame. There is one more step I can take with the copy command in the instructions that might work. I appreciate your help, and you are always helpful.

    Thanks

  6. #6
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222
    Originally posted by comn8u
    I appreciate your help, and you are always helpful.

    Thanks
    that makes me feel all warm and fuzzy No problem.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles