<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tag 'TreeView'</title><link>http://forums.asp.net/search/SearchResults.aspx?q=&amp;tag=TreeView&amp;orTags=0&amp;o=DateDescending</link><description>Search results matching tag 'TreeView'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: TreeView Overlap</title><link>http://forums.asp.net/thread/3534538.aspx</link><pubDate>Thu, 26 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3534538</guid><dc:creator>aquaren</dc:creator><description>&lt;p&gt;Tree views do not on their own support scrolling. The easiest thing to do is wrap the tree view inside of a div tag.&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Create a new css style for the div.&lt;/li&gt;&lt;li&gt;Set the css style&amp;#39;s height and width properties the height and width you would like for your tree view.&amp;nbsp;&lt;/li&gt;&lt;li&gt;Set the css style&amp;#39;s overflow property to auto.&lt;/li&gt;&lt;li&gt;Set the tree view&amp;#39;s height and width properties to 100% to fill the div tag.&lt;/li&gt;&lt;li&gt;Set the div tag&amp;#39;s class property equal to your new css style.&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;</description></item><item><title>Re: help with the treeview...</title><link>http://forums.asp.net/thread/3526289.aspx</link><pubDate>Sun, 22 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3526289</guid><dc:creator>aquaren</dc:creator><description>&lt;p&gt;The treeview does not maintain the selected item when you navigate to a new page. &lt;/p&gt;&lt;p&gt;One way to overcome this is to put something in the url that signifies which node was selected and use that to programmatically&amp;nbsp;set the selected node when the new page loads.&lt;/p&gt;</description></item><item><title>Added CheckBoxAutoPostBack To TreeView Component</title><link>http://forums.asp.net/thread/3519614.aspx</link><pubDate>Wed, 18 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3519614</guid><dc:creator>gjsduarte</dc:creator><description>&lt;p&gt;Hi, &lt;br /&gt;&lt;br /&gt;I changed the code for the TreeView Adapter in order to perform an optional autopostback when a checkbox is clicked.&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="c-sharp"&gt;private void WriteNodeCheckbox(TreeView treeView, TreeNode item, HtmlTextWriter writer)
		{
			// Added inline div to style both input and label controls on mouse over
			// The original TreeView renders &amp;lt;TD&amp;gt; tags as containers and applies the class to them, 
			// so this is the best way I found to replicate that behavoiur            
			writer.WriteBeginTag(&amp;quot;span&amp;quot;);
			// Added OnHover Method call
			WriteNodeHoverBehaviour(writer);
			writer.Write(HtmlTextWriter.TagRightChar);

			writer.WriteBeginTag(&amp;quot;input&amp;quot;);
			writer.WriteAttribute(&amp;quot;type&amp;quot;, &amp;quot;checkbox&amp;quot;);
			writer.WriteAttribute(&amp;quot;id&amp;quot;, treeView.ClientID + &amp;quot;n&amp;quot; + _checkboxIndex.ToString() + &amp;quot;CheckBox&amp;quot;);
			writer.WriteAttribute(&amp;quot;name&amp;quot;, treeView.UniqueID + &amp;quot;n&amp;quot; + _checkboxIndex.ToString() + &amp;quot;CheckBox&amp;quot;);
			if (!String.IsNullOrEmpty(treeView.Attributes[&amp;quot;OnClientClickedCheckbox&amp;quot;]))
			{
                //Added functionality to add an AutoPostBack when the checkbox is clicked
                //New code -&amp;gt;&amp;gt;
			    string postbackJava = &amp;quot;&amp;quot;;
                if (treeView.Attributes[&amp;quot;CheckBoxAutoPostBack&amp;quot;] == &amp;quot;True&amp;quot;)
                {
                    const string codePrefix = &amp;quot;c&amp;quot;;
                    postbackJava = Page.ClientScript.GetPostBackClientHyperlink(treeView,
                                                                                codePrefix +
                                                                                (Page.Server.HtmlEncode(item.ValuePath)).Replace(&amp;quot;/&amp;quot;, &amp;quot;\\&amp;quot;), true);
                }
                writer.WriteAttribute(&amp;quot;onclick&amp;quot;, treeView.Attributes[&amp;quot;OnClientClickedCheckbox&amp;quot;] + &amp;quot;; &amp;quot; + postbackJava);
                //End of new code
                //Disabled code -&amp;gt;&amp;gt;
                //writer.WriteAttribute(&amp;quot;onclick&amp;quot;, treeView.Attributes[&amp;quot;OnClientClickedCheckbox&amp;quot;]);
                //End &amp;lt;&amp;lt;-
			}

		    if (item.Checked)
			{
				writer.WriteAttribute(&amp;quot;checked&amp;quot;, &amp;quot;checked&amp;quot;);
			}
			writer.Write(HtmlTextWriter.SelfClosingTagEnd);
            //Added functionality to add image to checkbox node
            //New code -&amp;gt;&amp;gt;
            WriteNodeImage(treeView, item, writer);
            //End &amp;lt;&amp;lt;-
			if (!String.IsNullOrEmpty(item.Text))
			{
				writer.WriteLine();
				writer.WriteBeginTag(&amp;quot;label&amp;quot;);
				writer.WriteAttribute(&amp;quot;for&amp;quot;, treeView.ClientID + &amp;quot;n&amp;quot; + _checkboxIndex.ToString() + &amp;quot;CheckBox&amp;quot;);
				writer.Write(HtmlTextWriter.TagRightChar);
				writer.Write(item.Text);
				writer.WriteEndTag(&amp;quot;label&amp;quot;);
			}

			_checkboxIndex++;

			// Close Span
			writer.WriteEndTag(&amp;quot;span&amp;quot;);
			//
		}&lt;/pre&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; With this you just add the boolean attribute CheckBoxAutoPostBack to control declaration:&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="xhtml"&gt;&amp;lt;asp:TreeView ID=&amp;quot;MyTreeView&amp;quot; runat=&amp;quot;server&amp;quot; OnClientClickedCheckbox=&amp;quot;CascadeCheckmarks(event)&amp;quot;
    OnTreeNodeCheckChanged=&amp;quot;OnCheckChanged&amp;quot; OnAdaptedTreeNodeCheckChanged=&amp;quot;OnCheckChanged&amp;quot;
    CssSelectorClass=&amp;quot;SimpleEntertainmentTreeView&amp;quot; CheckBoxAutoPostBack=&amp;quot;True&amp;quot; ShowCheckBoxes=&amp;quot;All&amp;quot;&amp;gt;
&amp;lt;/asp:TreeView&amp;gt;&lt;/pre&gt;&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>'Open in new tab' option in treeview control.</title><link>http://forums.asp.net/thread/3513333.aspx</link><pubDate>Sun, 15 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3513333</guid><dc:creator>tanvir.faraj</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Please consider the following case:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I have a treeview control in a page. Only name and value property is set for each treenode. The &amp;#39;SelectedNodeChange&amp;#39; event is handled and another new page is loaded based on the selected node&amp;#39;s value. I have used UpdatePanel and associated controls to show a &amp;#39;Please Wait&amp;#39; message when a tree node is clicked. The message starts showing immediately after clicking the node and stops showing after a new page is loaded. So far this is fine and working perfectly.&lt;/p&gt;&lt;p&gt;The problem is when i right click on a treeview node (which appears as a link), the &amp;#39;Open in new tab&amp;#39; option is shown disabled in the browser menu (i mean the menu which appears after right clicking on a link). I found that if i set the navigate url property of treenode, then the &amp;#39;Open in new tab&amp;#39; menu is shown enabled. But in that case the &amp;#39;Please Wait&amp;#39; message doesn&amp;#39;t show.&lt;/p&gt;&lt;p&gt;The problem is, if i do not assign any hardcoded url to a link (treeview node in my case), the &amp;#39;Open in new tab/window&amp;#39; option is disabled. But if i assign a hardcode link, the browser handles the request automatically. In my case, since i am loading another page, the &amp;#39;Please Wait&amp;#39; message is now shown any longer.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Is there any option to enable &amp;#39;Open in new tab&amp;#39; without assigning hardcoded link?&lt;/p&gt;&lt;p&gt;Or is there any option to stop browser to emmediately send request when a hardcoded link is clicked?&lt;/p&gt;&lt;p&gt;Any help would be greately appreciated.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;Tanvir.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: TreeView Control</title><link>http://forums.asp.net/thread/3512611.aspx</link><pubDate>Sat, 14 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3512611</guid><dc:creator>Ahmed Moosa</dc:creator><description>&lt;p&gt;Hi Ali &lt;/p&gt;&lt;p&gt;1- Create Folders in Your Web Site&lt;/p&gt;&lt;p&gt;2- List it in XMl File &lt;/p&gt;&lt;p&gt;3- Bind It To Tree View &lt;/p&gt;&lt;p&gt;4- Use Item Value&amp;nbsp; in Upload Path .&lt;/p&gt;&lt;p&gt;Hope This Help &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Populating Treeview from a collection of classes.</title><link>http://forums.asp.net/thread/3495880.aspx</link><pubDate>Thu, 05 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3495880</guid><dc:creator>meerudoll</dc:creator><description>&lt;p&gt;&amp;nbsp;I have a class as follows:&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;public &lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;enum&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;state&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; { FR, STR, SR, IR, PR }&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public &lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;class&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;Node&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; {&lt;/font&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;protected&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; NodeName;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;protected&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; NodeValue;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;protected&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; NodeTip;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;protected&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;state&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; NodeState;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;protected&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;Node&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; NodeParent;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;protected&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;List&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;Node&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;gt; NodeChildren;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Node(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Name,&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Value,&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Tip,&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;state&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; State){&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.NodeName = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;DataSelection:DS1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.NodeState = &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;state&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.FR;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.NodeParent = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;null&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.NodeChildren=&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;List&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;Node&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;gt;();}&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; AddChildren(&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;Node&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; nChildren){&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;nChildren.NodeParent = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.NodeChildren.Add(nChildren);}&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Now i want to display this class objects in a Treeview.Can anyone help pls...&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Thanx in advance&lt;/font&gt;&lt;/p&gt;</description></item><item><title>How to Search The TreeView ?[Please Help]</title><link>http://forums.asp.net/thread/3479103.aspx</link><pubDate>Tue, 27 Oct 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3479103</guid><dc:creator>guptamurali</dc:creator><description>&lt;p&gt;Hi to all, Please help me..&lt;/p&gt;&lt;p&gt;Let me explain my Scenario clearly..&lt;/p&gt;&lt;p&gt;I&amp;#39;m using TreeView Control and one TextBox in my Webpage and the treeview control is &amp;nbsp;Binded with the database and it&amp;#39;s populating the value from the database.My problem is When the user enter any value in the textbox and clicks the button it should search the treeview which is binded with the database and it should highlite with some color.&lt;/p&gt;&lt;p&gt;Q1:How to Search the TreeView?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Q2:Is it possible to Highlite the Particular node which has been found in the TreeView?&lt;/p&gt;&lt;p&gt;Please Help me!!&lt;/p&gt;&lt;p&gt;Hope All will me!! Thanks in advance!! &lt;img src="http://forums.asp.net/tiny_mce/jscripts/tiny_mce/plugins/emotions/img/smiley-cry.gif" alt="Cry" title="Cry" border="0" /&gt;&lt;/p&gt;</description></item><item><title>Disable individual checkbox in TreeView</title><link>http://forums.asp.net/thread/3469380.aspx</link><pubDate>Wed, 21 Oct 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3469380</guid><dc:creator>thijsv</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I want to know if there is a possibility to disable individual (so not all) nodes from a TreeView. I know you can set them checked or unchecked but I want to know if the same is possible with disabling (= state where users cannot modify the checkbox).&lt;/p&gt;&lt;p&gt;Any help?&lt;/p&gt;&lt;p&gt;Thijs&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Treeview control and TreeNodeXslSrc error</title><link>http://forums.asp.net/thread/3443300.aspx</link><pubDate>Tue, 06 Oct 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3443300</guid><dc:creator>sakellariadis</dc:creator><description>&lt;p&gt;&amp;nbsp;I have a treeview control that works fine until I modify web.config to protect static files. Then I get the following error:&lt;/p&gt;
&lt;p style="PADDING-LEFT:30px;"&gt;Server Error in &amp;#39;/&amp;#39; Application.&lt;br /&gt;--------------------------------------------------------------------------------&lt;/p&gt;
&lt;p style="PADDING-LEFT:30px;"&gt;The XML loaded from TreeNodeSrc=XMLFile1.xml, TreeNodeXslSrc= did not contain the required outer &amp;lt;TREENODES&amp;gt; container.&lt;/p&gt;
&lt;p&gt;Hoping someone can help.&lt;/p&gt;
&lt;p&gt;To reproduce, I can use the following TreeView.ASPX file (from &lt;a href="http://www.15seconds.com/issue/030827.htm"&gt;http://www.15seconds.com/issue/030827.htm&lt;/a&gt;): &lt;/p&gt;
&lt;p style="PADDING-LEFT:30px;"&gt;&amp;lt;%@ Register TagPrefix=&amp;quot;iewc&amp;quot; Namespace=&amp;quot;Microsoft.Web.UI.WebControls&amp;quot; Assembly=&amp;quot;Microsoft.Web.UI.WebControls&amp;quot; %&amp;gt;&lt;br /&gt;&amp;lt;%@ Page Language=&amp;quot;vb&amp;quot; %&amp;gt;&lt;br /&gt;&amp;lt;HTML&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;HEAD&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;XMLIn&amp;lt;/title&amp;gt; &lt;br /&gt;&amp;nbsp; &amp;lt;/HEAD&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;form id=&amp;quot;Form1&amp;quot; method=&amp;quot;post&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;iewc:TreeView id=&amp;quot;TreeView1&amp;quot; runat=&amp;quot;server&amp;quot; TreeNodeSrc=&amp;quot;XMLFile1.xml&amp;quot;&amp;gt;&amp;lt;/iewc:TreeView&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/form&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/HTML&amp;gt;&lt;/p&gt;
&lt;p&gt;with the following XMLFile1.XML file:&lt;/p&gt;
&lt;p style="PADDING-LEFT:30px;"&gt;&amp;nbsp;&amp;lt;TREENODES&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;treenode text=&amp;quot;Parent1&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;treenode text=&amp;quot;Child-1a&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;treenode text=&amp;quot;Child-1b&amp;quot;/&amp;gt;&lt;br /&gt;&amp;lt;/treenode&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;treenode text=&amp;quot;Parent2&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;treenode text=&amp;quot;Child-2a&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;treenode text=&amp;quot;Child-2b&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/treenode&amp;gt;&lt;br /&gt;&amp;lt;/TREENODES&amp;gt;&lt;/p&gt;
&lt;p&gt;This&amp;nbsp;works fine, with standard web.config file. However, I want to change the site to protect static files,&amp;nbsp;so I add the following into web.config as the first lines within&amp;nbsp;the &amp;lt;system.webServer&amp;gt; tag:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;modules&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;remove name=&amp;quot;FormsAuthenticationModule&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;add name=&amp;quot;FormsAuthenticationModule&amp;quot; type=&amp;quot;System.Web.Security.FormsAuthenticationModule&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;remove name=&amp;quot;UrlAuthorization&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;add name=&amp;quot;UrlAuthorization&amp;quot; type=&amp;quot;System.Web.Security.UrlAuthorizationModule&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;remove name=&amp;quot;DefaultAuthentication&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;add name=&amp;quot;DefaultAuthentication&amp;quot; type=&amp;quot;System.Web.Security.DefaultAuthenticationModule&amp;quot; /&amp;gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/modules&amp;gt;&lt;/p&gt;
&lt;p&gt;(For an explanation see &lt;a href="http://learn.iis.net/page.aspx/244/how-to-take-advantage-of-the-iis7-integrated-pipeline/"&gt;http://learn.iis.net/page.aspx/244/how-to-take-advantage-of-the-iis7-integrated-pipeline/&lt;/a&gt;) This new web.config file works exactly to protect static files throughout the website, but causes the treeview control to fail. Can anyone suggest a&amp;nbsp;workaround or know the cause?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Spyros&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: asp.Net Hiding/displaying tables/divs</title><link>http://forums.asp.net/thread/3434556.aspx</link><pubDate>Thu, 01 Oct 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3434556</guid><dc:creator>gdl</dc:creator><description>&lt;p&gt;The first answer is the easiest and the logical one too. You are describing the exact features of the ASP.NET TreeView control.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>