ASPFriends.com 'aspngwebcontrols' list Archive - November 2001
Messages
Page: 1
Location of WebControls (3 replies)
ASPFriends.com 'aspngwebcontrols' list
Hi all, I have a few questions about the WebControls. 1. For the TreeView control, which namespace is it actually located because I see examples referencing Microsoft.Web.UI.WebControls? I thought that that namespace was changed to System.Web.UI.WebControls, either way, when I try to reference it, I couldn't find it. 2. I have .Net Beta 2 installed on my machine, which version of the Web Control i...
How to programmatically not expand a node? (2 replies)
ASPFriends.com 'aspngwebcontrols' list
Hi all, I am working on a tree view control, how do I programmatically disable one of the node so when they select it, it doesn't expand the tree. I have tried setting the expandable or expanded properties to false but I still can select the node and expand it. My code is in a .ascx file. script language "vb" runat "server" Public SetEnabled as Boolean Public SetLines as Boolean Public SetPlus as ...
More Questions about TreeView Control (2 replies)
ASPFriends.com 'aspngwebcontrols' list
Hi all, Sorry to keep bombarding you all with my questions but I have a few more. 1) I have the following code in my user control file in which I want to dynamically display different tree view based upon different forms. The data are in an xml file and I set the variable in my aspx page. When I tried loading my aspx page, I see nothing on the screen. However, if I set the TreeNodeSrc explicitly i...
Css and treeview strange behavior (9 replies)
ASPFriends.com 'aspngwebcontrols' list
I'm confronted with a strange thing when using stylesheets in combination with the treeview. What happens is that I can't set the text decoration and color for the first node programmatically. Here is my code: TreeCtrl.SelectedStyle.CssText "font family:Verdana;font size:11;background:#e6e6e6;color:black"; TreeCtrl.DefaultStyle.CssText "font family:Verdana;font size:11;background:#e6e6e6;color:bla...
Treview Question (3 replies)
ASPFriends.com 'aspngwebcontrols' list
Can't work out a way to do this. I have a treeview which could potentially display a lot of data. To avoid a huge query I do the following. 1) Create the root & first level of nodes on page load. 2) When a user expands a node the child rows are retrieved and added to the current node (BTW I also retieve a value indicating if a node has children and only show a plus if it has) Problem I am having a...
Cannot display treeview in Netscape 6.1 (4 replies)
ASPFriends.com 'aspngwebcontrols' list
Hi all, I have a tree view control that works in IE but it doesn't work in Netscape 6.1. When rendered, the tree only shows the parent nodes. When I tried to click on the plus sign to expand it, nothing happens. When I do view source on the page, it only shows the parent nodes. Can anybody tell me if there are issues with TreeView control and Netscape. Here is my code: %@ register TagPrefix "mytre...
Treeview control and xml and SQLServer (8 replies)
ASPFriends.com 'aspngwebcontrols' list
Hi All, I'm trying to bind a xml file to treeview control. The xml file(mytest.xml) is set up from IIS Virtual Directory Management for SQL Server in template type. mytest.xml is like: ROOT xmlns:sql "urn:schemas microsoft com:xml sql" sql:query SELECT * FROM Customers FOR XML AUTO EXPLICIT /sql:query /ROOT Then in my web page I wrote something like: iewc:treeview id "tvAdmin" runat "server" TreeN...
Programmatically adding Tree nodes (3 replies)
ASPFriends.com 'aspngwebcontrols' list
Can anyone give me an example of some code (preferably VB.NET) to add nodes to a Treeview at runtime? I tried using the ASPLISTS search, but it is apparently unavailable at the moment. I also tried the stuff at http://www.aspalliance.com/shark/articles/TreeView/TreeViewDoc.aspx but I can't seem to Dim TreeNodeType() the way that code does. It isn't really feasible for me to bind to XML since the T...
programatically setting TreeNodeSrc (6 replies)
ASPFriends.com 'aspngwebcontrols' list
hi, i have a treeview, and i'm caching the xml file and the xsl template, as follows. when i view the page, no data is there, i examined the source and there's just an empty treeview. if anyone has ideas, they are very welcome! XmlDocument nodes (XmlDocument)Cache.Get("XMLNodes"); XslTransform xslt (XslTransform)Cache.Get("XSLT"); if (nodes null || xslt null) { // wasn't there try{ new scootASP.In...
Worked with tabcontrols in ASP.net (2 replies)
ASPFriends.com 'aspngwebcontrols' list
Moved from [aspngcommunity] to [aspngwebcontrols] by Charles M. Carroll darthcarroll@asplists.com Hi! Friends, We plan to use tab control in our application, being developed in ASP.Net. Can anyone help me out with reference code/site wherein i can get help on handling this webcontrol. Thanks, Gayashri
Traversing a tree and syntax error (2 replies)
ASPFriends.com 'aspngwebcontrols' list
Hi all, I previously sent an email asking how to traverse a tree using the ID. I figure out a way to do it using recursion. The following function will traverse the node that is passed in as well as its descendents and look for the node id that matches the variable strFindId: Function searchChildNodes(strPos) as String ' check to see if there are any children if TreeCtrl.GetNodeFromIndex(strPos).N...
Problem accessing methods in user control (2 replies)
ASPFriends.com 'aspngwebcontrols' list
Hi all, I have a user control that contains a treeview control. I have a method in my user control called disableNodes that is called from my aspx page. When I tried to execute the method, I get the following message. This code works if I access the method within the user control. Exception Details: System.NullReferenceException: Value null was found where an instance of an object was required. So...
HELP! Invalid type (4 replies)
ASPFriends.com 'aspngwebcontrols' list
Hi all, It seems that after I run my project in debug mode, all of a sudden none of my page works. I create a simple aspx page and a user control. My user control just contains a label and when I load my page I get the following error: Server Error in '/vonapp dotnet' Application. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please ...
Problem linking TabStrip/MultiPage dynamically in a Composite Control (4 replies)
ASPFriends.com 'aspngwebcontrols' list
I am attempting to build a Composite Control (TabControl), consisting of a linked set of TabStrip/MultiPage Controls. Everything seems to be working except that the MultiPage never changes pages as Tab's are selected. The problem seems to be in setting the TabStrip.TargetID dynamically. When the TargetID is set declaratively, all is fine, and examining the TabStrip object shows the TargetID equals...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com