CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.internet_explorer_web_controls Tags:
Item Type: NewsGroup Date Entered: 9/2/2004 8:27:07 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 19 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
pprasadravi1971
Asp.Net User
Tree View Control9/2/2004 8:27:07 PM

0/0

Hi


I am using MS TreeView. I developed simple two java script functions for add and remove the selected node.It is working in IE 6.0 but is not working in NN7.0,NN7.2 and Mozill 1.1.
Here is my code :


To Remove Selected Node
--------------------------------------------------------------------------

<%@ Register TagPrefix="ie" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="MSTreeViewDelete.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<script language="javascript">
function Showme()
{
alert("hi");
var oldIndex= window.event.oldTreeNodeIndex;
var newIndex= window.event.newTreeNodeIndex;
var node = TreeView1.getTreeNode(newIndex);
node.remove();
}
</script>
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<ie:TreeView id="TreeView1" runat="server">
<ie:TreeNode id="l1" Text="Main">
<ie:TreeNode id="l21" Text="Sub 1">
<ie:TreeNode id="l211" Text="Sub Item 1" NavigateUrl="http://www.eenadu.net"></ie:TreeNode>
<ie:TreeNode id="l212" Text="Sub Item 2"></ie:TreeNode>
<ie:TreeNode id="l213" Text="Sub Item 3"></ie:TreeNode>
</ie:TreeNode>
<ie:TreeNode id="l22" Text="Sub 2">
<ie:TreeNode id="l221" Text="Sub Item 1"></ie:TreeNode>
<ie:TreeNode id="l222" Text="Sub Item 2"></ie:TreeNode>
<ie:TreeNode id="l223" Text="Sub Item 3"></ie:TreeNode>
</ie:TreeNode>
</ie:TreeNode>
</ie:TreeView>
</form>
</body>
</HTML>


------------------------------------------------------------------------------------------
To Add new node for selected Node
___________________________________________________________________

<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="MSTreeView.WebForm1" %>
<%@ Register TagPrefix="ie" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<script language="javascript">
function Showme()
{
alert("hi");
var oldIndex= window.event.oldTreeNodeIndex;
var newIndex= window.event.newTreeNodeIndex;
var node = TreeView1.getTreeNode(newIndex);
alert("The value of the oldTreeNodeIndex property is " + oldIndex + "\nThe value of the newTreeNodeIndex property is " + newIndex);
var newNode=TreeView1.createTreeNode();
newNode.setAttribute("Text","SaiBaba");
newNode.setAttribute("ID","l22222");
node.add(newNode);
}
</script>
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<ie:TreeView id="TreeView1" runat="server">
<ie:TreeNode id="l1" Text="Main">
<ie:TreeNode id="l21" Text="Sub 1">
<ie:TreeNode id="l211" Text="Sub Item 1" NavigateUrl="http://www.eenadu.net"></ie:TreeNode>
<ie:TreeNode id="l212" Text="Sub Item 2"></ie:TreeNode>
<ie:TreeNode id="l213" Text="Sub Item 3"></ie:TreeNode>
</ie:TreeNode>
<ie:TreeNode id="l22" Text="Sub 2">
<ie:TreeNode id="l221" Text="Sub Item 1"></ie:TreeNode>
<ie:TreeNode id="l222" Text="Sub Item 2"></ie:TreeNode>
<ie:TreeNode id="l223" Text="Sub Item 3"></ie:TreeNode>
</ie:TreeNode>
</ie:TreeNode>
</ie:TreeView>
</form>
</body>
</HTML>

____________________________________________________________________
Add the following code in pageload
________________________________________________________________

TreeView1.Attributes.Add("onselectedindexchange", "Showme();");



If anybody have clue pls help me.
Thanks
Ravi
RP
Bill2Clone
Asp.Net User
Re: Tree View Control9/3/2004 7:39:43 AM

0/0

When did you first install iewebcontrols.exe (~which version)?
DNN skins Forum
Tressleworks modules
DNN & webhosting
IEWCtrls
pprasadravi1971
Asp.Net User
Re: Tree View Control9/3/2004 2:47:57 PM

0/0

Hi Bill
i installed on 09/02/2004. version 1.0.2.226.
Thanks
Ravi
RP
Bill2Clone
Asp.Net User
Re: Tree View Control9/7/2004 7:27:48 AM

0/0

So, replace by this (line 1):

<%@ Register TagPrefix="ie" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %>
DNN skins Forum
Tressleworks modules
DNN & webhosting
IEWCtrls
pprasadravi1971
Asp.Net User
Re: Tree View Control9/7/2004 7:33:05 PM

0/0

Still it is not working.
RP
5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Sams Teach Yourself Visual Basic 2005 in 24 Hours: Complete Starter Kit Authors: James D. Foxall, Pages: 536, Published: 2006
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005
Beginning ASP.NET 3.5 in VB 9.0: From Novice to Professional Authors: Matthew MacDonald, Pages: 1149, Published: 2007
Programming ASP.NET: Building Web Applications and Services with ASP.NET 2.0 Authors: Jesse Liberty, Dan Hurwitz, Pages: 930, Published: 2005
Pro ASP.NET 2.0 in VB 2005: special edition. Authors: Laurence Moroney, Matthew MacDonald, Pages: 1360, Published: 2006
Beginning ASP.NET 2.0 Databases: Beta Preview Authors: John Kauffman, Thiru Thangarathinam, Pages: 427, Published: 2005
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 954, Published: 2007
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008
LabVIEW Authors: Taqi Mohiuddin, Rick Bitter, Matt Nawrocki, Pages: 499, Published: 2006
Beginning ASP.NET 3.5 in VB 9.0: From Novice to Professional Authors: Matthew MacDonald, Pages: 1149, Published: 2007

Web:
CodeGuru: Treeview Control The view is compatible with the tree control of the common control. .... Learn about an advanced control based on a standard tree view control. ...
Yahoo! UI Library: TreeView The YUI TreeView Control provides a rich, compact visual presentation of ... Download: Download the TreeView Control as part of the full YUI Library on ...
15 Seconds : Populating the TreeView Control from a Database Populating the TreeView Web Control from a database allows menu and input trees to change on the fly. Don Schlichting provides an introduction to the ...
Introduction to Tree View Control Introduction to Tree View Control C# Help c-sharp.
Tree View Creates a dragging bitmap for the specified item in a tree-view control. .... Sets the extended style for a specified TreeView control. ...
Michael Sync » Silverlight Toolkit - Using Silverlight TreeView ... Oct 28, 2008 ... The TreeView control provides a way to display information in a hierarchical ... As TreeView control is not Silverlight Core Library, ...
ASP.NET.4GuysFromRolla.com: Using the TreeView Control and a ... Aug 30, 2006 ... This article, by Scott Mitchell, looks at how to use the ASP.NET 2.0 TreeView control and DataList to create a simple and easily ...
TreeView Control - developerFusion - the global developer community The Tree View control is a Visual Basic version of the control you see used in many programs, including Explorer and FrontPage, used to list the folders on ...
Ajax TreeView Sample This is an example of our Ajax TreeView Control. The Gaia Ajax TreeView Control ... As you can see, this is not the case for our Gaia Ajax TreeView Control ...
15 Seconds : The ASP.NET 2.0 TreeView Control Thiru Thangarathinam introduces ASP.NET 2.0's new TreeView control which provides a seamless way to consume and display information from hierarchical data ...

Videos:
One Note Tree View Control Control to navigate the notebooks in treeView
Visual Basic IV : TreeView Control - Shalvin Visual Basic IV : TreeView Control (Without Voice) - Shalvin
Using TreeView Control VB2008 and VB2005 http://www.vb-heaven.com
Tree View Learn how the TreeView control has been improved and its programming model simplified, allowing you to easily read and manipulate hierarchical data s...
Customized rad treeview control with checkboxes Handling a role permission matrix using telerik rad treeview control with customized checkboxes table
Sylvania Stay Lit 9' Christmas Tree with Remote Control For More Info or to Buy Now: http://www.hsn.com/redirect.aspx?id=il&url=http%3A//www.hsn.com/cnt/prod/default.aspx%3Fpfid%3D329958&afsrc=1&sourceid=y...
Christmas Lights control by C-64 Computer, house view I had Christmas lights controlled by a Commodore 64 computer in 1985, and it is still being used this year. Munster, Indiana, Dogwood at Camelia, abo...
Protecting Lake Superior: Classical musicians rally for Great Lake July 15, 2007 during free benefit concert Protecting Lake Superior: Free Michigan concert with classical musicians, dancer will benefit Lake Superior Defense Fund on July 15 (Marquette, Mich...
How to customize Outlook toolbar How to add any custom .NET controls to Microsoft Outlook toolbar, such as button, grid, tree view, label, image, user control etc. For more informati...
GCCS97 #146 Proceedings of the GCC Developers Summit 2007 From http://ols.108.redhat.com/2007/GCC-Reprints/GCC2007-Proceedings.pdf . leaving many node attributes out. Figure 2: Syntax of paramet...




Search This Site:










authentication - pass http_remote_user between pages

asax

personal web starter kit hangs after running scripts for use w/ sql 2000

how to get the "comments" associated with the file.

.net cmd prompt without vs.net

modify ascx skin file - do i need to upload or not?

authentication problem -- trying to turn it off for initial page.

error creating edit.ascx for new module

server.mappath() question

getting id from a child control

enhancement: read more link visibility

how to utilize onclick event with asp:image

suppress border around webpartzone

database problem after deployment

explain pls!!!

user controls sharing data

sqlbase dataprovider

how to install vss 6d in windows server 2003 with iis 6 and developers can check out files from thier local computers

error in dnn installation

custom membership provider problems

property

wishes for next release

on a co-located dnn server, which ports have to be open?

custom webserver controls in vwd express 2005

drag and drop files from windows explorer to web page

error reporting

want to make a website with individual aspx pages but have nontech people update the content like dotnetnuke

disabling of a button via javascript prevents postback -- is there a workaround?

create a module through which i can add crystal reports

splitting records into 2 tables

 
All Times Are GMT