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 > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 8/3/2006 4:40:35 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 22 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
Tory89
Asp.Net User
treeview -nodes displayed do not reflect xml data8/3/2006 4:40:35 AM

0/0

I'm running into a very strange problem. The data that is listed in the watch window under

Treeview1 - base - base -dataSource - Data

does not reflect the data that is actually displayed on the webpage!

Here is the code, I appologize for its length

 

 
ConnectionStringSettings settings;
        settings = System.Configuration.ConfigurationManager.ConnectionStrings["campgesherConnectionString"];
        string connStr = settings.ConnectionString;

        DataSet ds = new DataSet();
        using (SqlConnection conn = new SqlConnection(connStr))
        {
            string sql = "Select MenuID, Text, Description, ParentID from Menu where cat like '"+ myCat +"'";
            SqlDataAdapter da = new SqlDataAdapter(sql, conn);
            da.Fill(ds);
            da.Dispose();
        }
        ds.DataSetName = "Menus";
        ds.Tables[0].TableName = "Menu";
        DataRelation relation = new DataRelation("ParentChild",
                ds.Tables["Menu"].Columns["MenuID"],
                ds.Tables["Menu"].Columns["ParentID"],
                true);

        relation.Nested = true;
        ds.Relations.Add(relation);

        //XmlDataSource1.Data = ds.GetXml();

        if (Request.Params["Sel"] != null)
            Page.Controls.Add(new System.Web.UI.LiteralControl("You selected " + Request.Params["Sel"]));

        XmlDataSource myXML = new XmlDataSource();
        myXML.TransformFile = "~/TransformXSLT.xsl";
        myXML.XPath = "//topNode/*";
        myXML.Data = ds.GetXml();
        myXML.DataBind();

      
        TreeView1.DataSource = myXML;
        TreeView1.DataBind();

 

I'm not sure if there is anything that can be done, this is pretty strange.

But, if there is any input, any at all, awsome!

thanks

1 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
Visual Basic 2005: How to Program Authors: Harvey M. Deitel, Pages: 1513, Published: 2006
Visual C# 2005: How to Program Authors: Harvey M. Deitel, Paul J. Deitel, Pages: 1591, Published: 2006
C# for Programmers: Updated for C# 2.0 Authors: Paul J. Deitel, Pages: 1317, Published: 2005

Web:
Treeview - XML, XPATH - Show part of XML Document The opinions mentioned herein are solely mine and do not reflect those of my ... in selecting particular nodes of an XML Document to display in TreeView. ...
Lakshmi's articles on .NET: ASP.NET : Binding XML Data to TreeView ... The XMLDataSource can take up any static XML file that contains XML data. ... The SelectAction=None specifies that the nodes in the TreeView do not have ...
Starlink Treeview Again, the whole array does not need to be loaded, so this is fast ... Hierarchical view of XML documents; Summary or full display of each node can be seen ...
Download IntegralUI TreeView Free Trial - With IntegralUI TreeView ... NET server control to display hierarchical data in a tree structure. The main advantage over other TreeView controls is the SIMPLICITY. You do not need to ...
ASP.NET QuickStart Tutorials This renders the element name of the XML node so that you can see the hierarchy of the nodes the TreeView is bound against. This does not necessarily ...
Create Editable XML Documents Using XPath and the TreeView Control How do you associate a node in the TreeView control with the matching node .... the data source updates to reflect the visual hierarchy currently displayed. ...
Treeview Components, Controls - for .Net ASP.Net Java ActiveX ... Manage, display and navigate heirachical data with a tree or treeview component. ... NET 2.0 platforms and do not require any Vista-class hardware. ...
ASP.NET 2.0 Training : Data Bound Controls It is an abstract class but does not have any predefined services. ... By default the nodes are bound to its own nodes to reflect the name of the node ...
AS P.NET P ersistent Tree View AsPtree Component without any coding with the XML Database Editor. The tree views do not require any .... nodes are used for the display of nodes that don’t have any links. ...
CodeProject: Binding ASP.NET TreeView to a DataSet or an ... May 2, 2008 ... I still can not see how the data that you saved in XML which does not have child nodes (as xml), is going to be presented in the tree view ...




Search This Site:










missing module edit menus dnn 3.0.8

how i can use the "file download window" that show three options (open, save, cancel).

include different user control depending on authentication state

real simple question, new to c#

email delivered into mailroot --- queue folder

treeview menu looks wrong once uploaded to internet

error when compilation - urgent help

get methods

can anyone provide me with a function that will get the value of a dtabase table field

install additional portal problem 3.0.12

difficult to control the style of the menu in asp.net 2.0

.net classbrowser

requirefieldvalidator problem

install cs2.1 on freewebdot - database connection problem

converting .doc file to img file and access in the page

user upload module?

visual web developer 2005 vs 2008

strange ide behaviour

security/user roles issue

looking for a validate expresssion...

file manager problem dnn 3.0.11

where do i put app_localresources[path]_[control].* files?

password case sensitivity

how can i make single dll of .aspx,.aspx.cs and .cs files

system.unauthorizedaccessexception

prevent buttons from validating

solpartmenu styling

images in private assemblies

ca certificate requesting - how to indicate the template and other questions

creating a genetic instance with activator.createinstance

 
All Times Are GMT