Skip to Content
0
Former Member
Aug 01, 2005 at 11:12 PM

.NET TreeView Control: Cannot get the tree structure in portal

139 Views

I am trying to use .NET tree view controller within SAP portal.

I created a SAP application project using the .NET PDK which I downloaded from service marketplace. I dragged and dropped the tree control in the design view of the SAP Portal Component and created couple of branches. The html code is

<%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %>

<%@ Control language="c#" Codebehind="SAPNETTree.ascx.cs" AutoEventWireup="false" Inherits="treeTest_Net.SAPNETTree" targetSchema="http://schemas.microsoft.com/intellisense/ie5" debug="True"%>

<! %@ PortalComponent name="SAPNETTree" % >

<LINK href="D:\usr\pdkNET\Portal Add-in for Visual Studio 2003\Controls\ur\ur_design.css"

type="text/css" rel="stylesheet">

http://schemas.sap.com/SAP.Web.UI.Controls">

<iewc:TreeView id="TreeView1" runat="server" SystemImagesPath="http://localhost:50000/irj/webctrl_client/1_0/treeimages/"

SelectedNodeIndex="2">

<iewc:TreeNode Text="Node0">

<iewc:TreeNode Text="Node2"></iewc:TreeNode>

<iewc:TreeNode Text="Node3"></iewc:TreeNode>

</iewc:TreeNode>

<iewc:TreeNode Text="Node1">

<iewc:TreeNode Text="Node4"></iewc:TreeNode>

<iewc:TreeNode Text="Node5"></iewc:TreeNode>

</iewc:TreeNode>

<iewc:TreeNode Text="Node6">

<iewc:TreeNode Text="Node8"></iewc:TreeNode>

<iewc:TreeNode Text="Node9"></iewc:TreeNode>

</iewc:TreeNode>

<iewc:TreeNode Text="Node7">

<iewc:TreeNode Text="Node10"></iewc:TreeNode>

<iewc:TreeNode Text="Node11"></iewc:TreeNode>

</iewc:TreeNode>

</iewc:TreeView>

</body>

Once i deploy the application in Enterprise Portal I cannot see the tree structure. I see a flat file with all the node names but not a tree structure.

I tried the same control in .NET ASP. It worked fine.

Could someone please let me know how I could get the tree running in the enterprise portal??

Thanks for your help!!!