Let's say that one needs to do table in database for navigation bar hierarchy (or something similar like product category). And if the level of the hierarchy is undetermined (or just free) and still should be updated and stored in database, then only way to
describe is with self-referencing table. NAVIGATIONBAR ===== NB_id (PK) NB_Parent_NB_id (FK reference to NB_id) NB_Name ... ... So data could look like this: 1 NULL TV's ... 2 2 Wide-screen TV's ... 3 2 Some other tv's... ... OK. And presume that this hierarchy
should be viewed with something that is done for viewing hierarchical data. let's say TreeView web form control. OK lets load data to datatable from database: Dim ds As New DataSet("NAVBARELEMENTS") '..Connections and SQL's da.FillSchema(ds,SchemaType.Mapped,"NAVIGATIONBAR")
da.Fill(ds,"NAVIGATIONBAR") '... Now, we know that TreeView needs it's data in pre-defined XML form (one example) like this: ==== ==== Now, next task is to get XML representation of the ds. It's easy: Dim str As String=ds.GetXml() But the XML looks exacty
same kind as in datatable (self-referencing): ============== 37 TV's 38 37 Wide screen tv's 39 37 Some other tv's =============== This is different from XML syntax that TreeView demands and also this isn't hierarchical in manner that TreeView "gets" it. So,
we need DataRelation. Now lets define a datarelation and set it to nested: =============== Dim drel As New DataRelation("NAVBAR_SELF",ds.Tables("NAVIGATIONBAR").Columns("NB_id"),ds.Tables("NAVIGATIONBAR").Columns("NB_Parent_NB_id")) drel.Nested=True ds.Relations.Add(drel)
=============== Now, let's see the XML again: =============== 37 TV's 38 37 Wide screen tv's 39 Some other tv's ========= This is much,much better as it points the hierarchy in elements not just via fields (elements are nested like TreeView demands, thanks
to nested DataRelation). Only what we need to do is the XSLT Transformation of our XML to XML that TreeView understands. (this can be done separately with XslTransform class or using TreeView's TreeNodeXsltSrc Property) Anyway,needed XSLT template might look
like this: ============= ============== Result of the transformation is: ============== - - ============== Which is correct format for TreeView to view(via it's TreeNodeSrc property). I might have had typos in this example as this is written 11.55 PM (+02.00
time zone), so forgive that to me. =) But I think idea came clear. Thanks.
I think I found a bugg with the TreeView. Reason I say that is because it doesn't seem logical that Microsoft did it by design. Senario 1 TreeView With Post Back This example has the flag AutopPostBack set to True. This example works, however, when it comes
time to choose the students, I need the TreeView not to post back. As you can see in this working demo, it would take too long for a user to choose more than 3 students . . . Senario 2 TreeView Without Post Back This example has the flag AutopPostBack set
to False. In this case, the treeView doesn't work properly. It seems that the TreeView won't expand unless the AutoPostBack is True. The way I found around this is to initiate the TreeView with all the nodes expanded. But that is not scalable at all. Please
download the demo I prepared at http://fashiondepotonline.com/DOTNET/TreeView_Question.zip Let me know what you think! CelloJ
Thanks a lot this example is excellent, but for the stupid guy, what exactly do you put into that TreeNodeSrc property ??? Do you crate some function or an url or what - if there is url what should be on the page ? I have tried to assign this prop programatically
in Page_Load event TreeView1.TreeNodeSrc = myDataSet.GetXml(); - didn't work I am exhausted I am trying to make this work for like 5 hours Thx a lot migel
[Edit by="joteke"][/Edit] TreeNodeSrc takes the result of the XSLT transformation I showed in my example(as string). TreeView accepts only certain type of XML syntax and the meaning of XSLT transformation is to change dataset data to match this TreeView syntax.
It's very unlikely that you would get this data straight from dataset unless you name dataset elements according to what TreeView needs. " Result of the transformation is: ============== - - ============== Which is correct format for TreeView to view(via it's
TreeNodeSrc property). "
No, the parameter contains the XML you are going to display as a string. It's the XML got from database and it has to be restructured with XSLT before assignning it for TreeView so it's format is such that TreeView accepts it. Take a look at my example with
care and those things should come quite clear from it.
I can't make it work - here is my codes: --------------webform2.aspx.cs (codebehind)-------------- public class WebForm2 : System.Web.UI.Page { public Microsoft.Web.UI.WebControls.TreeView TreeView1; public string strXmlTxt; private void Page_Load(object sender,
System.EventArgs e) { SqlConnection myConnection = new SqlConnection(ConfigurationSettings.AppSettings["ConnectionString"]); SqlDataAdapter myCommand = new SqlDataAdapter("sp_GetAllProductCategories", myConnection); // Mark the Command as a SPROC myCommand.SelectCommand.CommandType
= CommandType.StoredProcedure; // Add nParentCategory as a parameter SqlParameter parameterParentCategory = new SqlParameter("@nIdParent", SqlDbType.Int, 4); parameterParentCategory.Value = 0; myCommand.SelectCommand.Parameters.Add(parameterParentCategory);
// Create dataset System.Data.DataSet ds = new System.Data.DataSet(); ds.DataSetName = "Categories"; myCommand.Fill(ds, "ProductCategories"); strXmlTxt = ds.GetXml(); TreeView1.TreeNodeSrc=strXmlTxt; } --------------webform2.aspx---------------------- <form
id="WebForm2" method="post" runat="server"> </form> --------------------------/webform2.aspx------------------------------- I was wondering maybe you could send me (prehaps to michal@mwebsnet.com) some example of "real code" .... THX a LOT (I have gone thru
your code many many time ... still not getting clear, what exactly should I put into that treenodesrc parameter)
You have it correct but you dont have TreeView1.DataBind(); after setting TreeView1.TreeNodeSrc=strXmlTxt; (TreeView is also binded when used). If it does not help then show me what you get from ds.getXML() method and how does your XSLT template look like.
I have just started to use the Treeview control. I was attempting to follow your example and have been stumped. I have the following code...... Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim mySqlConnection
As SqlConnection = _ New SqlConnection(ConfigurationSettings.AppSettings("TaskManagerConn")) Dim mySqlDataAdapter As SqlDataAdapter = _ New SqlDataAdapter("Proj_GetValidProjects '" & 1 & "'", mySqlConnection) Dim myDataSet As DataSet = New DataSet("NAVBARELEMENTS")
mySqlDataAdapter.Fill(myDataSet, "NAVIGATIONBAR") myDataSet.WriteXml(Server.MapPath("ModFile.xml")) myDataSet = Nothing mySqlDataAdapter = Nothing mySqlConnection = Nothing End Sub produces the following output. 1 Smith & Jones 2 First Project Second Client
1 Smith & Jones 3 Project Name 1 Smith & Jones 5 Project Name3 1 Smith & Jones 7 Louis Martin which is not in the format that the Treeview would like to see, I believe I need to get it in the correct format like 1 Smith & Jones 2 1 First Project Second Client
3 1 Project Name 5 1 Project Name3 7 1 Louis Martin I have attempted to use the ..... da.FillSchema(myDataSet,SchemaType.Mapped,"NAVIGATIONBAR") da.Fill(myDataSet,"NAVIGATIONBAR") but it doesn't like the SchemaType.Mapped portion of the line..... da.FillSchema(myDataSet,SchemaType.Mapped,"NAVIGATIONBAR")
Any help would be appreciated! Thanks, ESG
Kinda didn;t understand what is the problem, but my suggestions would be: 1) da is defined as dataadapter (not the dataset) I have this line in my code and it works (even thought I didnt investigate what is it doing) 2) Maybe the relation line would help -
needs to be set to nested migel btw: THX to teemu - for his big help - solution was in the last post ... I dodn't databind the control :-)))
[Edit by="joteke"][/Edit] ESG, the correct-like format for the TreView is like this: IOW: There has to be TREENODES-named element as document element and TreeNode-named elements to point out nodes. In this notice how nodes containing 38 and 39 as nodedata are
children of node with nodedata 37. What should there be in your TreeView?I see that you have ClientID same in every node and based on that (based on client) you are trying to show projects, right? Those "projects" nodes should be children of "customernode".
Otherwise they are just their own individual nodes.
Thanks for the reply! Please understand that I am learning XSLT as well. I agree and understand that the final product after applying the XSLT would be or in my case something like From your example I thought there was an intermediate step that (for lack of
a better term) massaged the XML file one step further before applying the XSLT. Is it safe to say that I can take my output and write an XSLT file to convert it to the format I need for the Treeview? As always thanks for your time. ESG PS. Since I am new to
XSLT, any additional help is always appreciated.
The trick to get the data hierarchically indented is using nested DataRelation in Datatable. In my example the table referenced/related to itself but it could as well relate to some other table. When Dataset is outputted as XML the nested relation does this
indenting automatically. No other extra step was involved. After outputting, I used XSLT to change tag names, construct correct XML structure and strip out extra data. But, if you don't have chance to get data straight in indented form, then you'll have to
put more function for your XSLT stylesheet. It is possible but a bit harder than in my example.
Spent most of yesterday working on this. Attempted multiple stored procedures, XSLT attempts, etc. A problem I am having is that I cannot see the output when I combine the XML and XSL files without writing HTML that I don't want or need. Is there an easy way
to see these results? Also, I have a number of issues. Any one of which could be causing my headaches. If you would be interested in taking this offline and contacting me directly I could sure use the help. My email is in my profile. Thanks you! ESG
I'd like to "handle" everything here in the forums as I think that's most useful for everyone that might see this thread. Maybe result of that someone might find in this thread what s/he was looking for and does not need to question it here in other thread.
So if it's ok to you, lets continue this way (of course if the problem points to be with XSLT, then XML forum is the right place as this was just for sample codes). Anyway, you'd get the result of transformation like this: Dim objDoc As New XpathDocument(New
XmlTextReader("path_to_xmlfile")) Dim objXSL As New XslTransform() objXSL.Load("path_to_XSLT_file") objXSL.Transform(objDoc,Nothing,Response.OutputStream) It will write the result to the browser.
Below is the code, a portion of the XML file, and the XSL file I created to learn how to use the Treeview control. Much is a rehash of what Teemu did at the top of this thread. It all works now and my next goal is to extend it to four or five layers. My draw
backs were; 1) I didn't get the data from the database in the exact format as what was needed by the XSL file. I figured I could simple modify the XSL to fit my needs. This is probably possible, but should not have been undertaken by a novice XSL developer
like myself. 2) Since my data didn't match what Teemu had done I spent an enormous amount of time working on the XSL file. Many hours of banging my head against the wall. The tip he gave me to display the transform in a browser was VERY helpful. Dim objDoc
As New XpathDocument(New XmlTextReader("path_to_xmlfile")) Dim objXSL As New XslTransform() objXSL.Load("path_to_XSLT_file") objXSL.Transform(objDoc,Nothing,Response.OutputStream) *Sometimes the browser displays an error and you need to simply view source
to see what your tags look like. I did want to thank all that helped me and especially Teemu for his help. Eric Code Private Sub Button1_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button5.Click Dim nwindConn As SqlConnection
= _ New SqlConnection(ConfigurationSettings.AppSettings("NWindConn")) nwindConn.Open() Dim myDataSet As DataSet = New DataSet("CategoriesProducts") Dim custDA As SqlDataAdapter = _ New SqlDataAdapter("SELECT CategoryID as ID, " & _ "CategoryName as Description
FROM Categories", nwindConn) custDA.Fill(myDataSet, "Categories") Dim ordersDA As SqlDataAdapter = _ New SqlDataAdapter("SELECT CategoryID, ProductID as ID, " & _ "ProductName as Description FROM Products", nwindConn) ordersDA.Fill(myDataSet, "Products") nwindConn.Close()
myDataSet.Relations.Add("CatProd", _ myDataSet.Tables("Categories").Columns("ID"), _ myDataSet.Tables("Products").Columns("CategoryID")).Nested = True 'myDataSet.WriteXml(Server.MapPath("CatProd.xml")) TreeView1.TreeNodeSrc = Server.MapPath("CatProd.xml")
TreeView1.TreeNodeXsltSrc = Server.MapPath("CatProd.xsl") TreeView1.DataBind() End Sub XML File (CatProd.XML) partial..... 1 Beverages 1 1 Chai 1 2 Chang 1 24 Guaraná Fantástica 1 34 Sasquatch Ale 1 35 Steeleye Stout 1 38 Côte de Blaye 1 39 Chartreuse verte
1 43 Ipoh Coffee 1 67 Laughing Lumberjack Lager 1 70 Outback Lager 1 75 Rhönbräu Klosterbier 1 76 Lakkalikööri ...................etc. XSL File (CatProd.XSL)
I would show the all code, but my example was just a modified snip of one real case and I really can't publish it. Maybe better approach could be that you show what you have done and maybe we'll be able to help you with that.
The commented line below should be uncommented. (sorry) myDataSet.Tables("Products").Columns("CategoryID")).Nested = True 'myDataSet.WriteXml(Server.MapPath("CatProd.xml")) TreeView1.TreeNodeSrc = Server.MapPath("CatProd.xml") You should be able to create a
new VS web project place the treeview control on the page cut and paste the code into the code section Add the following to Web.config just above the tag modify the info above to macth your environment use notepad to create the .XSL file in the same directory
as the web page. and I think thats it......... If you don't have the treeview control you need to download from Microsoft. I don't remember the specific URL but do a search on treeview and you should find it. Eric
BTW, if one has VS.NET then XSL(T) files can be done with it also. And if one wants Intellisense for XSLT files in VS.NET, then check this link:
http://www.fesersoft.com/dotNet/default.asp (the XSLT Schema v1.1 download at the end of the page)
I have put together a short example.... There is: .aspx .aspx.cs .xml (as an example of what comes from dataset.getxml) .xslt (as an example of xslt template) .sql (stored procedure) http://www.mwebsnet.com/downloads/treeview.zip Best regards michal
Good work, mige! Once I get my becoming site http://www.joteke.net up and running, I will also put sample codes and all other useful stuff there so that they are downloadable etc. I guess the subject of the examples will be the most asked questions here at
forums plus also some that users have asked and maybe something extra (if I am able to figure such solutions =) ), like this TreeView example.
Hi there, These examples are great. I just have a question regarding the Event callback onselectedindexchange. Has anyone here been able to get this event callback to fire when a treenode select occurs. I've tried using VB.NET and C# to code this but it still
does not call the onselectedindexchange callback method when a node is selected. Hopefully some of you out there has tried this. I've been stuck on this for a while. I am open to suggestions. thanks, regards,
Sorry guys, I must have reinstalled the website and I didn't put it back. Fortunately, it like the first time I have found something in my backups :-)) so it should be back there on the same address. Migel
I have a problem with low level browser such as Excplorer 5.0 and Netscape browser I use treenodesrc property to "pass" xml formatted data With explorer 5.5 or later i don't have problem BUT with explorer 5.0 i can explode only the first level of the tree.
When i click for expanding the second level treeview is "reload" showing only the root. I try to put the xml document into the page (without treeview binding) and so treeview works!!!! BUT the problem is that I need to load xml document dinamically using ADO.NET
thanks Federico
Could you show a bit of your code, for the relevant part? If your code is very long, use Paste-Code Service:
http://aspalliance.com/Aylar/PasteCode.aspx provided by Thomas Johansen and send link here. I'll take a look at it.
I've published my first article at AspAlliance.
Display hierarchical data with TreeView "TreeView gives developers chance to display hierarchical data as I’ll demonstrate in this article. What makes TreeView so cool is that it can also display elements (tree nodes) based on XML."
ok I found the problem, I didn't check..."if Page.IsPostBack" now it work perfectly on ie 5. thank you :-) Can treeview support 10.000 items? To manage a treeview whit 10000 nodes do you think is better to use more treeview component ( a treeview for each main
branch) ?? thanks Fabio
Well, I really can't say anything exact as I haven't tested it with such large scenario, but I think it should work at least some way :) . Although it will be sure slow on first request and ViewState will be HUGE also. Using more controls would not help with
ViewState, but individual controls would load faster. So is the end result really any different? I believe not. If you use my way, you'd have to do more transformations (one per control) and so on.
ok thank you very much :-) Do you know if msdn site use the treeview component for it's treemenu ? you can see it here: http://msdn.microsoft.com/downloads/ on the left :-) thank you Fabio.
Doesn't anyone have a Full Example that works? Every Example that try's to explain the treeview, XML and SQL data Binding, does't have an example that works. Or they leave out info. Anyone help me out.
Dang this is cool!! Works great. If you could just clarify one point for me. You had to create your XSLT template file manually correct? You weren't creating this dynamically. Once the XSLT template is created then the app creates the XML file dynamically and
uses XSLT as a template for formatting correct?
Yes, XSLT file had to be created manually based on data to be transformed into correct XML format. Idea is that nested DataRelation in DataSet brings the hierarchy correct for TreeView and XSLT transforms this hierarchical XML into correct format for TreeView
Ok, I'm an XSLT idiot. I have an XSLT file that is creating a NavigateURL attribute for each tree node so that it links to a web page. Like so: editpage.aspx?pid= How do I specify no NavigateUrl attribute if PageID_pk (or some other column) is null? e.g. OR,
just don't write the attribute at all for this node. What I want to do is have a NavigateUrl attribute for one item, but not for another.
Ok, it's been half of a year since someone posted here, but I'm having a problem with the example... I've modified the names of the datasets, fields, etc where necessary, but have left the major structure unchanged. I'm getting a server error with this message:
'xsl:call-template' cannot be a child of 'xsl:choose' element It doesn't give me a line number, but there's only one place where this is the case: I can post more of the .xslt file if necessary, but I'll just use this for now... any ideas? Thanks! Joe
Ok, the xslt might make a little more sense if you have my data structure as well: 'Assume that CN is defined as SqlClient.SqlConnection Dim dsClients As New Data.DataSet("ClientProjects") Dim DA As New SqlClient.SqlDataAdapter() DA.SelectCommand = New SqlClient.SqlCommand("select
* from tblclients", CN) DA.Fill(dsClients, "Clients") DA.SelectCommand = New SqlClient.SqlCommand("select clientid,description from tblprojectmaster", CN) DA.Fill(dsClients, "Projects") dsClients.Relations.Add("fkClientID", dsClients.Tables("Clients").Columns("ClientID"),
dsClients.Tables("Projects").Columns("ClientID")) dsClients.Relations("fkClientID").Nested = True I pasted the xslt file using the pastecode service... http://aspalliance.com/aylar/ViewPasteCode.aspx?PasteCodeID=618 Thanks for all your help!
Actually the source XML would make more sense. ;-) You can also change my original parameter names if you like. Kategoriat is Categories in Finnish. :) Also are you running the transformation just normally using XslTransform?
Your stylesheet is fine, but I believe the problem is in the data structure you are trying to transform. Take a look at the XML structure I've used and then that you use. You do actually two things at once, I handle only categories in the my demo. You might
need to think the logic of the stylesheet more carefully and create separate handling for clients and projects (own callable template for projects for example or even separate XML files) .
Can you give me an example of using two callable templates? I've tried to do it myself and came up with this: http://aspalliance.com/aylar/ViewPasteCode.aspx?PasteCodeID=625 But I still get the same original error: 'xsl:call-template' cannot be a child of 'xsl:choose'
element Could we touch on why I'm getting that error when I'm basically copying your template and just changing the dataset and field names where appropriate? Thanks again! :)
Ok, I got it to work! =) A simple misplaced "/" was causing the error... Should read: It's always the little things, isn't it? ;) Thanks again for all of your assistance!
Is there a way to have the data for the nested table begin at a certain row and then include all children for that row? In other words I have a treeview with all of the nested data in it and a 2nd treeview (linked to a different xml file) that I want only to
contain a subfolder/subset of my original nested data. Make sense?
Great question, in theory at least yes. If thinking about the XML format, the main row or first node that contains others would be the root node and recursive transformation would be applied for that. There's no trouble with that. But querying the data from
database is harder trick, although using recursive SQL queries it would work. But I am not expert with them but put "recursive SQL query" to Google and check the results.
Hmm, ok, I was trying to avoid recursive SQL as it seems to hinder performance. I suppose if I had to I could construct my own datatable with recursive SQL statements and add it to the dataset and then make it nested. Oh well, thx anyway.
Yeah, well , it is up to you. ;-) As I said I am not expert with this, and there really might be much better solution for it than recursive SQL (at least Joe Celko has such, but it relies on nesting instead of recursion). Although looping with dynamic SQL does
not sound very attarctive, either in manual code or in stored procedure, although it probably is very well working.
Hello All Thanks for all of your post. Recently i studied Teemu's article at http://authors.aspalliance.com/joteke/treeviewarticle/article.aspx and was trying to implement exactly same solution using VB.NET but i am getting weird error. I have tried to refer
most of the related post but could not resolve this problem and hope any one of you will provide some insight. Here is my code. ************** VB.NETcode ***************** Dim MyConnection As System.Data.SqlClient.SqlConnection Dim MyCommand As System.Data.SqlClient.SqlCommand
' Dim drel As System.Data.DataRelation Dim strSQL As String strSQL = " Select maprp.RegionProgramId as [CategoryID], maprp.ParentRegionId as [ParentCategoryID], r.Name as [CategoryName]" & _ " From mapRegionProgram maprp INNER JOIN Region r ON maprp.RegionId
= r.RegionId " & _ " Where maprp.ProgramId = 53 " & _ " and r.Deleted = 0 " & _ " Order BY maprp.RegionProgramId, r.RegionId" MyConnection = New System.Data.SqlClient.SqlConnection("server=ssnasql01;database=EyeQSSC;User ID=EyeQCustom;Password=EyeQCustom;")
MyCommand = New System.Data.SqlClient.SqlCommand(strSQL, MyConnection) Dim myAdapter As New System.Data.SqlClient.SqlDataAdapter(MyCommand) Dim ds As New System.Data.DataSet myAdapter.Fill(ds) 'Create DataRelation ' ds.Relations.Add("CategoriesRecursive",
ds.Tables(0).Columns("CategoryID"), ds.Tables(0).Columns("ParentCategoryID"), False) ' ds.Relations("CategoriesRecursive").Nested = True Dim drel As New System.Data.DataRelation("CategoriesRecursive", ds.Tables(0).Columns("CategoryID"), ds.Tables(0).Columns("ParentCategoryID"),
False) drel.Nested = True ds.Relations.Add(drel) MyConnection.Close() 'Response.Write(ds.GetXml) 'XmlDocument to hold XML generated from DataSet Dim objDoc As System.Xml.XmlDocument objDoc = New System.Xml.XmlDocument ' //Load XML objDoc.LoadXml(ds.GetXml())
' //Create XslTransform object Dim objxsl As System.Xml.Xsl.XslTransform objxsl = New System.Xml.Xsl.XslTransform ' //Load XSLT stylesheet objxsl.Load(Server.MapPath("transformationtemplate.xslt")) ' //StringWriter to temporarily hold result of the transformation
Dim writer As System.IO.StringWriter writer = New System.IO.StringWriter ' //Apply transformation with no arguments and dump results to StringWriter. objxsl.Transform(objDoc.CreateNavigator(), Nothing, writer) ' //Set TreeView's TreeNodeSrc property to get
XML from StringWriter. TreeView1.TreeNodeSrc = writer.ToString() ' //Bind TreeView TreeView1.DataBind() ' //Close StringWriter writer.Close() ************************* When I execute the Response.Write(ds.GetXml) It renders the result something like this.
***** result of Response.write ********* 11 AMEX National Services 12 11 Central 15 12 503 223 15 L7L 224 15 L7M 225 15 L7N ......... ********************** When i try to render TreeView, it fails due to an incorrect xml formatting. I debugged the code and
this is the value that i am getting for the TreeNodesrc ********** value of TreeNodeSrc *********** "11AMEX National Services1211Central151250322315L7L..... ..... ..... " ******************************** Please provide some insight as to how can i resolve
this? Thanks Mandip
Hello Please find the three things (1) Exact output of the XML that i get from DataSet (2) Xslt file (3) Exact Error message from the web page (1) Here is the exact output of the XML that i get from the DataSet ***** result of Response.write (ds.GetXml) *********
11 AMEX National Services 12 11 Central 15 12 503 223 15 L7L 224 15 L7M 225 15 L7N ......... ........ there are about 1000 more rows... like this. ********************** (2) XSLT file is also exactly same as the one in article as the field names returned from
my query are same as the one in article (CategoryId, ParentCategoryId, CategoryName) I also tried to change the first three lines so that the changed xslt has the first three lines as follows but that did not worked also. It is giving the same errors. ************
************** (3) The error on the web page is as follows. "Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file
appropriately. Parser Error Message: The literal string "11AMEX National Services1211Central151250322315L7L22415L7M22515L7N22615L7P22715L7R22815L7S22915L7T23015L7V23115L8E23215L8G23315L8H23415L8J23515L8K23615L8L23715L8M23815L8N23915L8P24015L8R24115L8S24215L8T24315L8V24415L8W24515L9A24615L9B24715L9C24815L9G24915L9H25015L9J25115L9K27515L6H27615L6J27715L6K27815L6L27915L6M28915L9T473715L0L473815L0P473915L0T474015L7G181250525218L4T25318L4V25418L4W25518L4X25618L4Y25718L4Z25818L5A25918L5B26018L5C26118L5E26218L5G26318L5H26418L5J26518L5K26618L5L26718L5M26818L5N26918L5P27018L5R27118L5S27218L5T27318L5V27418L5W28018L6R28118L6S28218L6T28318L6V28418L6W28518L6X28618L6Y28718L6Z28818L7A191251029019L3T29119L3V29219L3X29319L3Y29419L3Z29519L4B29619L4C29719L4E29819L4G29919L4H30019L4J30119L4K30219L4L30319L4M30419L4N30519L4P30619L4S30719L9V30819L9W30919L9Y31019L6A31119L7B474119L3J474219L3N474319L8A474419L4I201251131220M1B31320M1C31420M1E31520M1G31620M1H31720M1J31820M1K31920M1L32020M1M32120M1N32220M1P32320M1R32420M1S32520M1T32620M1V32720M1W32820M1X32920M2H33020M2J33120M2K33220M2L33320M2M33420M2N33520M2R464120M2P464220M3A464320M3B464420M3C464520M3H464620M3J464720M3K464820M3L464920M3M465020M3N465120M4A465220M4B465320M4C465420M4E465520M4G465620M4H465720M4J465820M4K465920M4L466020M4M466120M4N466220M4P466320M4R466420M4S466520M4T466620M4V466720M4W466820M4X466920M4Y467020M5A467120M5B467220M5C467320M5E467420M5G467520M5H467620M5J467720M5K467820M5L467920M5M468020M5N468120M5P468220M5R468320M5S468420M5T468520M5V468620M5W468720M5X468820M6A468920M6B469020M6C469120M6E469320M6G469420M6H469520M6J469620M6K469720M6L469820M6M469920M6N470020M6P470120M6R470220M6S470320M8V470420M8W470520M8X470620M8Y470720M8Z470820M9A470920M9B471020M9C471120M9L471220M9M471320M9N471420M9P471520M9R471620M9V471720M9W211251233621L1B33721L1C33821L1E33921L1G34021L1H34121L1J34221L1K34321L1L34421L1N34521L1P34621L1R34721L1S34821L1T34921L1V35021L1W35121L1X35221L1Y35321L1Z35421L3P35521L3R35621L3S35721L4A35821L6B35921L6C36021L6E36121L6G1311Western221380110922T1X11022T1Y11122T2A11222T2B11322T2C11422T2E11522T2G11622T2H11722T2J11822T2K11922T2L12022T2M12122T2N12222T2P12322T2R12422T2S12522T2T12622T2V12722T2W12822T2X12922T2Y13022T2Z13122T3A13222T3B13322T3C13422T3E13522T3G13622T3H13722T3J13822T3K13922T3L14022T3M14122T3N14222T3Z231390114323V4A14423V4G14523V4K14623V4L14723V4M14823V4P14923V5X15423V6L15523V6M15623V6N15723V6P16123V6V16223V6W16323V6X16423V6Y16523V7A16623V7B16723V7C16823V7E16923V2X17023V2V17123V2W17223V3B17323V3C17423V3E17523V3H17623V3J17723V3K17823V3L17923V3M18023V3N18123V3Y18223V4R18323V4S19523V5P19723V5S36223V1M36323V2P36423V2R36523V2S36623V2T36723V2Y36823V2Z36923V3G37023V3H37123V3A37223V3R37323V3S37423V3T37523V3V37623V3W37723V3X37823V4C37923V4E38023V4N38123V4X38223V4W38323V3H473523V4B473623V4J251390415025V5Z15125V6H15225V6J15325V6K15825V6R15925V6S16025V6T18425V5A18525V5B18625V5C18725V5E18825V5G18925V5H19025V5J19125V5K19225V5L19325V5M19425V5N19625V5R19825V7G19925V7H20025V7J20125V7K20225V7L20325V7M20425V7N20525V7P20625V7R20725V5T20825V5V20925V5W21025V5Y21125V6A21225V6B21325V6C21425V6E21525V6G21625V6Z21725V7S21825V7T21925V7V22025V7W22125V7X22225V7Y1411Eastern26144022726H1A2826H1B2926H1C3026H1E3126H1G3226H1H3326H1J3426H1K3526H1L3626H1M3726H1N3826H1P3926H1R4026H1S4126H1T4226H1V4326H1W4426H1X4526H1Y4626H1Z4726H2A4826H2B4926H2C5026H2E5126H2G5226H2H5326H2J5426H2K5526H2L5626H2M5726H2N5826H2P5926H2R6026H2S6126H2T6226H2V6326H2W6426H2X6526H2Y6626H2Z6726H3A6826H3B6926H3C7026H3E7126H3G7226H3H7326H3K7426H4C7526H4E7626H4G7726H4H7826H8N7926H8P8026H8R8126J3G8226J3H8326J3L8426J3N8526J3V8626J3Y8726J4B8826J4G8926J4H9026J4J9126J4K9226J4L9326J4M9426J4N9526J4P9626J4R9726J4S9826J4T9926J4V10026J4W10126J4X10226J4Y10326J4Z10426J5A10526J5R10626J6J10726J6N10826J6R"
was found. Literal strings are not allowed within this control. Source Error: Line 1: <_TreeViewPrefix:TREEVIEW runat='server'>11AMEX National Services1211Central151250322315L7L22415L7M22515L7N22615L7P22715L7R22815L7S22915L7T23015L7V23115L8E23215L8G23315L8H23415L8J23515L8K23615L8L23715L8M23815L8N23915L8P24015L8R24115L8S24215L8T24315L8V24415L8W24515L9A24615L9B24715L9C24815L9G24915L9H25015L9J25115L9K27515L6H27615L6J27715L6K27815L6L27915L6M28915L9T473715L0L473815L0P473915L0T474015L7G181250525218L4T25318L4V25418L4W25518L4X25618L4Y25718L4Z25818L5A25918L5B26018L5C26118L5E26218L5G26318L5H26418L5J26518L5K26618L5L26718L5M26818L5N26918L5P27018L5R27118L5S27218L5T27318L5V27418L5W28018L6R28118L6S28218L6T28318L6V28418L6W28518L6X28618L6Y28718L6Z28818L7A191251029019L3T29119L3V29219L3X29319L3Y29419L3Z29519L4B29619L4C29719L4E29819L4G29919L4H30019L4J30119L4K30219L4L30319L4M30419L4N30519L4P30619L4S30719L9V30819L9W30919L9Y31019L6A31119L7B474119L3J474219L3N474319L8A474419L4I201251131220M1B31320M1C31420M1E31520M1G31620M1H31720M1J31820M1K31920M1L32020M1M32120M1N32220M1P32320M1R32420M1S32520M1T32620M1V32720M1W32820M1X32920M2H33020M2J33120M2K33220M2L33320M2M33420M2N33520M2R464120M2P464220M3A464320M3B464420M3C464520M3H464620M3J464720M3K464820M3L464920M3M465020M3N465120M4A465220M4B465320M4C465420M4E465520M4G465620M4H465720M4J465820M4K465920M4L466020M4M466120M4N466220M4P466320M4R466420M4S466520M4T466620M4V466720M4W466820M4X466920M4Y467020M5A467120M5B467220M5C467320M5E467420M5G467520M5H467620M5J467720M5K467820M5L467920M5M468020M5N468120M5P468220M5R468320M5S468420M5T468520M5V468620M5W468720M5X468820M6A468920M6B469020M6C469120M6E469320M6G469420M6H469520M6J469620M6K469720M6L469820M6M469920M6N470020M6P470120M6R470220M6S470320M8V470420M8W470520M8X470620M8Y470720M8Z470820M9A470920M9B471020M9C471120M9L471220M9M471320M9N471420M9P471520M9R471620M9V471720M9W211251233621L1B33721L1C33821L1E33921L1G34021L1H34121L1J34221L1K34321L1L34421L1N34521L1P34621L1R34721L1S34821L1T34921L1V35021L1W35121L1X35221L1Y35321L1Z35421L3P35521L3R35621L3S35721L4A35821L6B35921L6C36021L6E36121L6G1311Western221380110922T1X11022T1Y11122T2A11222T2B11322T2C11422T2E11522T2G11622T2H11722T2J11822T2K11922T2L12022T2M12122T2N12222T2P12322T2R12422T2S12522T2T12622T2V12722T2W12822T2X12922T2Y13022T2Z13122T3A13222T3B13322T3C13422T3E13522T3G13622T3H13722T3J13822T3K13922T3L14022T3M14122T3N14222T3Z231390114323V4A14423V4G14523V4K14623V4L14723V4M14823V4P14923V5X15423V6L15523V6M15623V6N15723V6P16123V6V16223V6W16323V6X16423V6Y16523V7A16623V7B16723V7C16823V7E16923V2X17023V2V17123V2W17223V3B17323V3C17423V3E17523V3H17623V3J17723V3K17823V3L17923V3M18023V3N18123V3Y18223V4R18323V4S19523V5P19723V5S36223V1M36323V2P36423V2R36523V2S36623V2T36723V2Y36823V2Z36923V3G37023V3H37123V3A37223V3R37323V3S37423V3T37523V3V37623V3W37723V3X37823V4C37923V4E38023V4N38123V4X38223V4W38323V3H473523V4B473623V4J251390415025V5Z15125V6H15225V6J15325V6K15825V6R15925V6S16025V6T18425V5A18525V5B18625V5C18725V5E18825V5G18925V5H19025V5J19125V5K19225V5L19325V5M19425V5N19625V5R19825V7G19925V7H20025V7J20125V7K20225V7L20325V7M20425V7N20525V7P20625V7R20725V5T20825V5V20925V5W21025V5Y21125V6A21225V6B21325V6C21425V6E21525V6G21625V6Z21725V7S21825V7T21925V7V22025V7W22125V7X22225V7Y1411Eastern26144022726H1A2826H1B2926H1C3026H1E3126H1G3226H1H3326H1J3426H1K3526H1L3626H1M3726H1N3826H1P3926H1R4026H1S4126H1T4226H1V4326H1W4426H1X4526H1Y4626H1Z4726H2A4826H2B4926H2C5026H2E5126H2G5226H2H5326H2J5426H2K5526H2L5626H2M5726H2N5826H2P5926H2R6026H2S6126H2T6226H2V6326H2W6426H2X6526H2Y6626H2Z6726H3A6826H3B6926H3C7026H3E7126H3G7226H3H7326H3K7426H4C7526H4E7626H4G7726H4H7826H8N7926H8P8026H8R8126J3G8226J3H8326J3L8426J3N8526J3V8626J3Y8726J4B8826J4G8926J4H9026J4J9126J4K9226J4L9326J4M9426J4N9526J4P9626J4R9726J4S9826J4T9926J4V10026J4W10126J4X10226J4Y10326J4Z10426J5A10526J5R10626J6J10726J6N10826J6R
Source File: none Line: 1 " Thanks Mandip
Hello Could it be because we are using the Transform method on System.xml.xsl.xslTransform, which is an obsolete method? I tried to correct it but no success... Thanks Mandip
No, that just means method will not be supported on future framework releases. And you posted the result as string, that is shows in browser. XML is in the source view, if you check it.
Hello Thanks for your reply. I managed to figure out the error. Actually i changed your C# code to VB.Net and in doing that by mistake i forgot to specify few things so that the xml was not having the tags of and . Instead of that i had and
tags in xml, so i changed the xsl file and that solved the problem. But there is another problem now. The data does gets populated on the web browser in a hierarchical fashion but without any nodes it is written as one string like this...."My First Tree Node
Child Node 1 Child Node 2" So i tried to add another TreeView in the aspx design mode and just added this few nodes manually in the dsigner mode and ran that page but still i got the same result .... "My First Tree Node Child Node 1 Child Node 2" Does that
mean i have some property incorrectly set-up? If so then which one is it? Thanks Mandip
Thanks for your help and i hope this thing gets resolved now.... it is taking too much of the time. Here is the xml from the Source of the rendered html page. Another strange thing that i noticed is the second line in the aspx page which registers this web
control. This line is only a part of the line compared to your sample file. This line in my code "" This line in your sample file "" When i tried to change this line and made exaclty same as the one in your sample, the web page fails with this error "The located
assembly's manifest definition with name 'Microsoft.Web.UI.WebControls' does not match the assembly reference." ****************** XML *******************************
Hello Teemu Thanks for your help and time. I found the problem and i also corrected and I got it working completely fine now. There was a problem in the way i installed the web controlled. Once again thanks a lot. Your article was very helpful.. Mandip
"Once I get my becoming site http://www.joteke.net up and running, I will also put sample codes and all other useful stuff there so that they are downloadable etc." What happened to your project of web site www.joteke.net?
My first impression was that is good approach for describing complex structures,even not known at design time. The same pattern i intend to use also to populate data. Thank you for your publication. Franci Jarnovic programmer
Hi, I have used Teemu's code at http://authors.aspalliance.com/joteke/treeviewarticle/article.aspx and it works well. One thing I found though is the page takes a long time to load (45 secs) once posted on my server, I have narrowed this delay down to one line
of code. TreeView1.TreeNodeSrc =writer.ToString(); It seems it takes a long time to convert the StringWriter to a string. Can anyone suggest how I can improve this or what the problem might be. It doesn't have this delay with my local server. Thanks in advance.
Richard
Yeah, I've noticed that too and it is weird as StringWriter uses StringBuilder internally to create the String. StringBuilder should be the most efficient way to construct the string, after all. You could try to use memoryStream as the temporary storage. It
needs bit more code (like resetting stream position after writing and having StreamWriter as well as -reader), but it might be more efficient.
Does this TreeView support multiple select or drag and drop? Does anyone know of any .NET TreeView controls based on the Microsoft IE controls TreeView that do?
Not MS TreeView but I have lately studied the tree implementation Microsoft uses at MSDN, so called 'deeptree'. It is IE specific and utilizes client-side XSL transformation (oh well, WD-XSL) but all in all is pretty darn cool. It has support for drag & drop
as well. It is pretty much expandable without limits as it works at client. The latest tree implementation at MSDN isn't basically documented at all, but here's URL to a newsgroup post here it is tried to logically separate to understandable parts:
The post
Teemu, I think I was mistaken the 45 sec delay is not during the StringBuilder to String conversion its actually during TreeView1.DataBind(); I replaced the generation of the line TreeView1.TreeNodeSrc = writer.ToString(); with a suitable string constant, TreeView1.TreeNodeSrc
= "
Star
10931 Points
6879 Posts
ASPInsiders
MVP
Show hierarchical data with TreeView and self-referencing Datatable
Jul 01, 2002 03:56 PM|joteke|LINK
Teemu Keiski
Finland, EU
None
0 Points
2 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Jul 11, 2002 11:29 AM|bsapd|LINK
g.c.r. & associates, inc.
bestep@gcr1.com
None
0 Points
8 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Jul 29, 2002 03:18 PM|CelloJ|LINK
None
0 Points
7 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Jul 31, 2002 08:18 PM|mige|LINK
http://www.mwebsnet.com
None
0 Points
2 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Jul 31, 2002 11:16 PM|bsapd|LINK
g.c.r. & associates, inc.
bestep@gcr1.com
Star
10931 Points
6879 Posts
ASPInsiders
MVP
Re: Show hierarchical data with TreeView and self-referencing Datatable
Aug 01, 2002 12:35 AM|joteke|LINK
Teemu Keiski
Finland, EU
None
0 Points
7 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Aug 01, 2002 05:53 AM|mige|LINK
http://www.mwebsnet.com
Star
10931 Points
6879 Posts
ASPInsiders
MVP
Re: Show hierarchical data with TreeView and self-referencing Datatable
Aug 01, 2002 07:20 AM|joteke|LINK
Teemu Keiski
Finland, EU
None
0 Points
7 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Aug 01, 2002 09:23 AM|mige|LINK
http://www.mwebsnet.com
Star
10931 Points
6879 Posts
ASPInsiders
MVP
Re: Show hierarchical data with TreeView and self-referencing Datatable
Aug 01, 2002 12:14 PM|joteke|LINK
Teemu Keiski
Finland, EU
None
0 Points
5 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Aug 02, 2002 10:46 AM|ESG|LINK
None
0 Points
7 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Aug 02, 2002 11:10 AM|mige|LINK
http://www.mwebsnet.com
Star
10931 Points
6879 Posts
ASPInsiders
MVP
Re: Show hierarchical data with TreeView and self-referencing Datatable
Aug 03, 2002 04:15 AM|joteke|LINK
Teemu Keiski
Finland, EU
None
0 Points
5 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Aug 03, 2002 05:35 AM|ESG|LINK
Star
10931 Points
6879 Posts
ASPInsiders
MVP
Re: Show hierarchical data with TreeView and self-referencing Datatable
Aug 04, 2002 10:31 AM|joteke|LINK
Teemu Keiski
Finland, EU
None
0 Points
5 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Aug 05, 2002 08:20 AM|ESG|LINK
Star
10931 Points
6879 Posts
ASPInsiders
MVP
Re: Show hierarchical data with TreeView and self-referencing Datatable
Aug 05, 2002 09:21 AM|joteke|LINK
Teemu Keiski
Finland, EU
None
0 Points
5 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Aug 07, 2002 10:08 AM|ESG|LINK
Member
2 Points
47 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Aug 08, 2002 07:32 PM|primortal|LINK
Star
10931 Points
6879 Posts
ASPInsiders
MVP
Re: Show hierarchical data with TreeView and self-referencing Datatable
Aug 09, 2002 10:43 AM|joteke|LINK
Teemu Keiski
Finland, EU
None
0 Points
5 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Aug 09, 2002 10:44 AM|ESG|LINK
Member
2 Points
47 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Aug 09, 2002 10:52 AM|primortal|LINK
Star
10931 Points
6879 Posts
ASPInsiders
MVP
Re: Show hierarchical data with TreeView and self-referencing Datatable
Aug 09, 2002 11:14 AM|joteke|LINK
Teemu Keiski
Finland, EU
None
0 Points
7 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Aug 11, 2002 04:05 AM|mige|LINK
http://www.mwebsnet.com
Star
10931 Points
6879 Posts
ASPInsiders
MVP
Re: Show hierarchical data with TreeView and self-referencing Datatable
Aug 11, 2002 04:59 AM|joteke|LINK
Teemu Keiski
Finland, EU
None
0 Points
1 Post
Re: Show hierarchical data with TreeView and self-referencing Datatable
Aug 16, 2002 12:47 PM|dev-aspnet|LINK
None
0 Points
2 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Nov 26, 2002 05:12 AM|TheMill|LINK
None
0 Points
7 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Nov 26, 2002 01:14 PM|mige|LINK
http://www.mwebsnet.com
None
0 Points
4 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Dec 13, 2002 08:08 AM|FabioHL|LINK
Star
10931 Points
6879 Posts
ASPInsiders
MVP
Re: Show hierarchical data with TreeView and self-referencing Datatable
Dec 14, 2002 09:07 AM|joteke|LINK
Teemu Keiski
Finland, EU
Star
10931 Points
6879 Posts
ASPInsiders
MVP
Re: Show hierarchical data with TreeView and self-referencing Datatable
Dec 15, 2002 01:55 PM|joteke|LINK
Teemu Keiski
Finland, EU
None
0 Points
4 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Dec 16, 2002 05:17 AM|FabioHL|LINK
Star
10931 Points
6879 Posts
ASPInsiders
MVP
Re: Show hierarchical data with TreeView and self-referencing Datatable
Dec 16, 2002 06:48 AM|joteke|LINK
Teemu Keiski
Finland, EU
None
0 Points
4 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Dec 18, 2002 09:42 AM|FabioHL|LINK
None
0 Points
1 Post
Re: Show hierarchical data with TreeView and self-referencing Datatable
Feb 11, 2003 08:09 AM|ASPNetTester|LINK
Star
10931 Points
6879 Posts
ASPInsiders
MVP
Re: Show hierarchical data with TreeView and self-referencing Datatable
Feb 12, 2003 04:04 AM|joteke|LINK
Teemu Keiski
Finland, EU
None
0 Points
85 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Feb 19, 2003 06:30 PM|travisb|LINK
Star
10931 Points
6879 Posts
ASPInsiders
MVP
Re: Show hierarchical data with TreeView and self-referencing Datatable
Feb 20, 2003 01:04 AM|joteke|LINK
Teemu Keiski
Finland, EU
None
0 Points
85 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Feb 21, 2003 07:12 PM|travisb|LINK
Star
10931 Points
6879 Posts
ASPInsiders
MVP
Re: Show hierarchical data with TreeView and self-referencing Datatable
Feb 22, 2003 12:38 AM|joteke|LINK
Teemu Keiski
Finland, EU
None
0 Points
85 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Feb 24, 2003 11:25 AM|travisb|LINK
None
0 Points
5 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Mar 12, 2003 04:01 PM|jhicks|LINK
Star
10931 Points
6879 Posts
ASPInsiders
MVP
Re: Show hierarchical data with TreeView and self-referencing Datatable
Mar 13, 2003 01:12 AM|joteke|LINK
Teemu Keiski
Finland, EU
None
0 Points
5 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Mar 13, 2003 07:18 AM|jhicks|LINK
Star
10931 Points
6879 Posts
ASPInsiders
MVP
Re: Show hierarchical data with TreeView and self-referencing Datatable
Mar 13, 2003 07:46 AM|joteke|LINK
Teemu Keiski
Finland, EU
None
0 Points
5 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Mar 13, 2003 07:53 AM|jhicks|LINK
Star
10931 Points
6879 Posts
ASPInsiders
MVP
Re: Show hierarchical data with TreeView and self-referencing Datatable
Mar 13, 2003 12:24 PM|joteke|LINK
Teemu Keiski
Finland, EU
None
0 Points
5 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Mar 13, 2003 02:15 PM|jhicks|LINK
None
0 Points
5 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Mar 13, 2003 02:55 PM|jhicks|LINK
Star
10931 Points
6879 Posts
ASPInsiders
MVP
Re: Show hierarchical data with TreeView and self-referencing Datatable
Mar 13, 2003 03:28 PM|joteke|LINK
Teemu Keiski
Finland, EU
None
0 Points
85 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Apr 01, 2003 11:59 AM|travisb|LINK
Star
10931 Points
6879 Posts
ASPInsiders
MVP
Re: Show hierarchical data with TreeView and self-referencing Datatable
Apr 01, 2003 12:19 PM|joteke|LINK
Teemu Keiski
Finland, EU
None
0 Points
85 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Apr 01, 2003 12:32 PM|travisb|LINK
Star
10931 Points
6879 Posts
ASPInsiders
MVP
Re: Show hierarchical data with TreeView and self-referencing Datatable
Apr 01, 2003 12:44 PM|joteke|LINK
Teemu Keiski
Finland, EU
None
0 Points
8 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Nov 07, 2003 12:53 PM|mandip|LINK
Star
10931 Points
6879 Posts
ASPInsiders
MVP
Re: Show hierarchical data with TreeView and self-referencing Datatable
Nov 07, 2003 01:40 PM|joteke|LINK
Teemu Keiski
Finland, EU
None
0 Points
8 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Nov 07, 2003 03:16 PM|mandip|LINK
None
0 Points
8 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Nov 07, 2003 04:41 PM|mandip|LINK
Star
10931 Points
6879 Posts
ASPInsiders
MVP
Re: Show hierarchical data with TreeView and self-referencing Datatable
Nov 08, 2003 03:46 AM|joteke|LINK
Teemu Keiski
Finland, EU
None
0 Points
8 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Nov 10, 2003 11:01 AM|mandip|LINK
None
0 Points
8 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Nov 10, 2003 11:22 AM|mandip|LINK
My First Tree Node Child Node 1 Child Node 2
******************************************************* ************************* aspx page ***********************<form runat="server" ID="form1" method="post">
None
0 Points
1952 Posts
Re: mandip
Nov 10, 2003 05:18 PM|Bill2clone|LINK
Tressleworks modules
DNN & webhosting
IEWCtrls
None
0 Points
8 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Nov 10, 2003 05:19 PM|mandip|LINK
None
0 Points
1952 Posts
Re: joteke
Nov 10, 2003 05:21 PM|Bill2clone|LINK
Tressleworks modules
DNN & webhosting
IEWCtrls
Star
10931 Points
6879 Posts
ASPInsiders
MVP
Re: joteke
Nov 11, 2003 01:06 AM|joteke|LINK
Teemu Keiski
Finland, EU
None
0 Points
5 Posts
Re: That is it
Dec 12, 2003 04:53 AM|SolutionFinder|LINK
None
0 Points
8 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Jan 27, 2004 01:49 AM|Richard Walsh|LINK
Star
10931 Points
6879 Posts
ASPInsiders
MVP
Re: Show hierarchical data with TreeView and self-referencing Datatable
Jan 27, 2004 12:58 PM|joteke|LINK
Teemu Keiski
Finland, EU
None
0 Points
85 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Jan 27, 2004 01:20 PM|travisb|LINK
Star
10931 Points
6879 Posts
ASPInsiders
MVP
Re: Show hierarchical data with TreeView and self-referencing Datatable
Jan 27, 2004 03:13 PM|joteke|LINK
Teemu Keiski
Finland, EU
None
0 Points
8 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Jan 27, 2004 10:06 PM|Richard Walsh|LINK
Member
156 Points
439 Posts
Re: Show hierarchical data with TreeView and self-referencing Datatable
Aug 06, 2009 03:38 AM|Haansi|LINK
joteke,
I read out all discussion as well as your article. You are using
TreeView1.TreeNodeSrc = writer.ToString();
but asp.net tree I am afraid is not offering .TreeNodeSrc.
Can you please guide what is solution ?
thanks for your time & attention,
Best Regards,
haansi
Best Regards,
Haansi