I have a code that load hierarchy( nodes) into trew view.. by selecting different date, the hierarchy result from SP will show in the treeview..
the problem is even though I select a different date.. the result( node) of previous date is still showing in addition to the new hierarchy result...
it;s like the new result node is appended to existing node.. instead of refreshing the node and showing only the new result. How can I clear out the treeview nodes before adding new nodes from different date?
I am using a web service and get a SOAP envelope back and I am trying to extract some data but constantly run into errors. I have tried with LINQ, using xsl transform and so on.
I have a few items apart of my Web.sitemap file that rely on querystring or session variables. I do not want these items to appear in my menu. Is there a way to hide it from the menu, but still be in the sitemap (for sitepath control).
I understand that a treeview cannot expand/collapse without javascript. But is it possible to open the treeview in expanded form when javascript is disabled? Even if I cannot expand/collapse the nodes, at least I can click on the nodes that will display the data related to that node.
Similar to the treeview used in online auction sites, our treeview looks something like this: [URL], where clicking on a link will redirect me, and clicking on the "+" will expand or collapse the node. The only difference would be that ours is databound.
Another developer is working on this and he tells me that this is not possible without javascript. This webform in particular works almost entirely without javascript, and I'd like the treeview to also work partially.
I see that the data is there when I autogenerate. I can't seem to understand how to get the values from the nodes? Any reference anywhere on the ways to set the properties of databandings/TreeNodeBinding?
I am having problems finding the proper XPATH syntax to get the nodes I want with this XML file. For one, there is no NameSPace in the XML so I have to add one in code. I think this effects my XPATH.
In my asp.net application I'm using TreeView control, and at some point I noticed that TreeView.Nodes property doesn't return all the nodes, so I'm curious how can I get ALL Nodes of TreeView control to iterate through them in foreach loop, any tricks, or I miss something?
I have a TreeView menu populated from a SiteMapDataSource. The TreeView defaults to all nodes expanded, but the normal client side expand/collapse behaviour for the nodes is not working. I get one Javascript error in my Firebug console, being:
I have a table with a class id called bdr-1 . What i need is a jquery which looks into that table and sees if there are other nodes <tr> , <td> , <div>,<span>,Text If there is nothing then apply blank border and if there nodes withen that table are put a border .
Any limit to the number of nodes you can have in a treeview, I have been having some problems getting it to display with the panel I made. I have actually decided not to use the treeview, in fact may drop this part of the app altogether, but just wondering for future reference. I know if certain browsers have a limit for the the url, but can not seem to find anything, if there is anything, on a node limit. I am using asp.net 3.5 with VB and my browser is IE8, well the only one I tested on.
I am using vs2008 vb code behind. I am currently receiving an object through a web service that I serialize into xml. What I'd like to do after that is remove the namespaces, and add nodes to sort of customize my own xml doc. I am getting an error on this
Code: Dim DOC1 As New XmlDocument Dim STR As String STR = ConvertObjectToXmlString(HODRes).ToString DOC1.LoadXml(STR)
[Code] ....
The error I get is:
Server Error in '/RateAudit' Application. ________________________________ Data at the root level is invalid. Line 1, position 1. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
Source Error:
Line 109: Dim STR As String Line 110: STR = ConvertObjectToXmlString(HODRes).ToString Line 111: DOC1.LoadXml(STR) Line 112: Line 113:
I'm trying to create an <asp:Menu> bound to an <asp:SiteMapDataSource>. I have everything implemented but I'm receiving an error stating: "Multiple nodes with the same URL '/Members/LandingPage.aspx' were found. XmlSiteMapProvider requires that sitemap nodes have unique URLs.". Can anyone point me in the right direction to solving this error? The menu structure that I'm trying to create and the Web.sitemap that I'm using are shown below.
Is it possible to have location authorization nodes in a web.config be external?
Such that I could take all of the nodes simlar to
[code]....
And move them outside of the web.config or something simlar? I find these nodes at an extreme amount of noise to a web.config when they're relatively static. Normally my approach would be to config source something like this but since it falls under the root node I'm not sure of it's possible with these nodes.
I am using the agility pack to do some screens scraping and my code so far to get titles is:
foreach (HtmlNode title in root.SelectNodes("//html//body//div//div//div[3]//div//div//div//div[3]//ul//li[1]//h4")) { string titleString = "<div class="show">" + title.InnerText + "</div>"; shows.Add(titleString); }
Before the title I want a timestamp related to the title and it has the node /html/body/div/div/div[3]/div/div/div/div[3]/ul/li[1]/ul/li/span. How can I get this value next to the title? So something like: string titleString = "<div class="show">" + time.InnerText + " - " + title.InnerText + "</div>";