Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > My treeview doesn't work...

Reply
Thread Tools

My treeview doesn't work...

 
 
Chris Hoare
Guest
Posts: n/a
 
      11-28-2003
I have tried to create a treeview but instead of an
explorer style screen, I get a line of text with nothing
treeview-like about it at all.

Heres my code....




<html>
<body>
<form name="Form1" method="post"
action="webform2.aspx" id="Form1">
<input type="hidden" name="__Treeview1_State__" value="" />
<input type="hidden" name="__VIEWSTATE"
value="dDwxNjkzMTE3NDIyO3Q8O2w8aTwxPjs+O2w8dDw7bDx pPDE+Oz47
bDx0PEAwPHA8cDxsPFNlbGVjdGVkTm9kZUluZGV4Oz47bDwwOz 4+Oz47Ozs
7O0AwPDtAMDxsPGk8MD47PjtsPEAwPEAwPHA8bDxTZWxlY3RlZ Ds+O2w8bz
x0Pjs+Pjs7Ozs+Ozs+Oz47Pjs+Oz47Oz47Pj47Pj47bDxUcmVl dmlldzE7P
j6WbtDyH//k5D37neLk1s9e8S6T+w==" />

<?XML:NAMESPACE PREFIX=TVNS />
<?IMPORT NAMESPACE=TVNS
IMPLEMENTATION="/webctrl_client/1_0/treeview.htc" />
<tvns:treeview id="Treeview1" NAME="Treeview1"
selectedNodeIndex="0" HelperID="__Treeview1_State__"
systemImagesPath="/webctrl_client/1_0/treeimages/"
onexpand="javascript: if (this.clickedNodeIndex != null)
this.queueEvent('onexpand', this.clickedNodeIndex)"
oncollapse="javascript: if (this.clickedNodeIndex != null)
this.queueEvent('oncollapse', this.clickedNodeIndex)"
oncheck="javascript: if (this.clickedNodeIndex != null)
this.queueEvent('oncheck', this.clickedNodeIndex)"
onselectedindexchange="javascript: if
(event.oldTreeNodeIndex != event.newTreeNodeIndex)
this.queueEvent('onselectedindexchange',
event.oldTreeNodeIndex + ',' + event.newTreeNodeIndex)">
<tvns:treenode Selected="true">
My first Tree Node<tvns:treenode>
My second Tree Node
</tvns:treenode>
</tvns:treenode>
</tvns:treeview>
</form>
</body>
</html>
 
Reply With Quote
 
 
 
 
Guest
Posts: n/a
 
      11-29-2003
check web root of /webctrl_client/1_0/
or install tree control at web mac
>-----Original Message-----
>I have tried to create a treeview but instead of an
>explorer style screen, I get a line of text with nothing
>treeview-like about it at all.
>
>Heres my code....
>
>
>
>
><html>
> <body>
> <form name="Form1" method="post"
>action="webform2.aspx" id="Form1">
><input type="hidden" name="__Treeview1_State__"

value="" />
><input type="hidden" name="__VIEWSTATE"
>value="dDwxNjkzMTE3NDIyO3Q8O2w8aTwxPjs+O2w8dDw7bD xpPDE+Oz

47
>bDx0PEAwPHA8cDxsPFNlbGVjdGVkTm9kZUluZGV4Oz47bDwwO z4+Oz47O

zs
>7O0AwPDtAMDxsPGk8MD47PjtsPEAwPEAwPHA8bDxTZWxlY3Rl ZDs+O2w8

bz
>x0Pjs+Pjs7Ozs+Ozs+Oz47Pjs+Oz47Oz47Pj47Pj47bDxUcmV ldmlldzE

7P
>j6WbtDyH//k5D37neLk1s9e8S6T+w==" />
>
> <?XML:NAMESPACE PREFIX=TVNS />
><?IMPORT NAMESPACE=TVNS
>IMPLEMENTATION="/webctrl_client/1_0/treeview.htc" />
><tvns:treeview id="Treeview1" NAME="Treeview1"
>selectedNodeIndex="0" HelperID="__Treeview1_State__"
>systemImagesPath="/webctrl_client/1_0/treeimages/"
>onexpand="javascript: if (this.clickedNodeIndex != null)
>this.queueEvent('onexpand', this.clickedNodeIndex)"
>oncollapse="javascript: if (this.clickedNodeIndex !=

null)
>this.queueEvent('oncollapse', this.clickedNodeIndex)"
>oncheck="javascript: if (this.clickedNodeIndex != null)
>this.queueEvent('oncheck', this.clickedNodeIndex)"
>onselectedindexchange="javascript: if
>(event.oldTreeNodeIndex != event.newTreeNodeIndex)
>this.queueEvent('onselectedindexchange',
>event.oldTreeNodeIndex + ',' + event.newTreeNodeIndex)">
> <tvns:treenode Selected="true">
> My first Tree Node<tvns:treenode>
> My second Tree Node
> </tvns:treenode>
> </tvns:treenode>
></tvns:treeview>
> </form>
> </body>
></html>
>.
>

 
Reply With Quote
 
 
 
 
MSFT
Guest
Posts: n/a
 
      12-01-2003
Hi Chris,

IF the IE web controls haven't beed installed correctly, there will be such
a problem. You can follow these steps to complete the installation:

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...bcontrols/webc
ontrols_entry.asp


Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to access the Page from a TreeNode (treeview 's element) : addinga context menu to a treeview abargaddon ASP .Net Building Controls 0 01-17-2008 11:05 AM
Microsoft Treeview vs System Treeview stepkurt ASP .Net Web Controls 1 09-02-2007 11:32 AM
ASP.NET 2.0 TreeView - Programatically Selecting A TreeView Node =?Utf-8?B?VHltYm93?= ASP .Net 2 01-10-2006 03:51 AM
Issue with a custom TreeView derived from the TreeView control Ionutz ASP .Net Web Controls 2 10-23-2005 03:23 PM
TreeView not rendering nodes? Cacheing of a TreeView Per Salmi ASP .Net Web Controls 1 10-15-2003 01:15 PM



Advertisments