Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: treeview client behaviour problem


Message #1 by "tejas joshi" <tvj08@y...> on Sun, 26 May 2002 06:38:07
Hello Everybody !

     I am trying to make a directory structure by
using TreeView IE WebControl while developing a B2B
site ....
  
     But my code for treeview works quite fine with
Netscape 4.7 but not with IE 6.0 or Netscape 6.1...

    Here is what I did..

     I installed the IE WebControls from MS and added
reference to it in my web project .. then wrote a
simple code for the treeview...

     The problem is that no treeview is shown though
no error occurs...it shows only plain text as the
output...such as this..

    FIRSTNODE SUBNODE1 SUBNODE2

Here is my code :

<%@ Register TagPrefix="mytree"
Namespace="Microsoft.Web.UI.WebControls"
Assembly="Microsoft.Web.UI.WebControls"%>
<%@ Import Namespace="Microsoft.Web.UI.WebControls"%>
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="firstTree.aspx.vb"
Inherits="exLogin.firstTree"%>

<HTML>
  <HEAD>
    <title>firstTree</title>
  </HEAD>
  <body>
   <form id="Form1" method="post" runat="server">
    <mytree:TreeView id="oTree" runat="server">
     <mytree:TreeNode Text="FIRSTNODE">
  <mytree:TreeNode Text="SUBNODE1"/>                  

  <mytree:TreeNode Text="SUBNODE2" />             
     </mytree:TreeNode>
    </mytree:TreeView>
   </form>
  </body>
</HTML>


   After a while what I figured out is that the code
works fine with Netscape 4.7 but not with IE 6.0..

   what could be the problem..can anybody help on this
one..?

    Any help in this regard will be greatly
appreciated !

    Thanx !

  Return to Index