Internet Explorer Web Controls (RETIRED)http://forums.asp.net/91.aspx/1?Internet+Explorer+Web+Controls+RETIRED+General discussion of the Internet Explorer Web Controls source package for ASP.NET 1.x. Note : This forum was retired on Monday July 12, 2010, and is now read-only. More InformationWed, 29 Jun 2011 01:37:57 -0400urn:uuid:00000000-0000-0000-0000-000000000091urn:uuid:00000000-0000-0000-0000-000004482761http://forums.asp.net/p/1694894/4482761.aspx/1?treeview+control+fails+in+ie8+Document+mode+IE8+Standards+treeview control fails in ie8 - Document mode (IE8 Standards) <p>Treeview controls fails in ie8 browser with document mode(IE8 Standards) with the following errors.</p> <p>Message: Invalid procedure call or argument<br> Line: 797<br> Char: 1<br> Code: 0<br> URI: <a href="http://localhost/webctrl_client/1_0/treeview.htc">http://localhost/webctrl_client/1_0/treeview.htc</a></p> <p>Message: 'subtree.all' is null or not an object<br> Line: 496<br> Char: 1<br> Code: 0<br> URI: <a href="http://localhost/webctrl_client/1_0/treeview.htc">http://localhost/webctrl_client/1_0/treeview.htc</a></p> <p><br> &nbsp;</p> <p>&nbsp;</p> 2011-06-29T05:37:57-04:002011-06-29T05:37:57.087-04:00urn:uuid:00000000-0000-0000-0000-000000869030http://forums.asp.net/p/869030/869030.aspx/1?Inherting+from+TreeNodeInherting from TreeNode I've created a new object MyTreeNode that inherits from TreeNode. I did this so I could keep track of additional properties regarding each node. I can add MyTreeNode objects to the TreeView. However, the issue I'm having is when I select a node and the SelectedIndexChange event fires. When this happens I try to access my object-specifc properties and they are all set to the defaults from object initialization. All my info is gone. I made sure all references to TreeNodes are cast properly. Has anyone else tried to inherit from TreeNode or experienced this issue? Thanks, Matt 2005-03-24T17:06:23-05:002005-03-24T17:06:23.173-05:00urn:uuid:00000000-0000-0000-0000-000000901491http://forums.asp.net/p/878793/901491.aspx/1?TabStrip+State+ErrorTabStrip State Error An application of mine which uses a TabStrip has developed an odd issue. When a user clicks on a tab in Internet Explorer, they get the error &quot; &lt;tabstrip&gt; _State is null or not an object&quot;. This error does not occur in Firefox, where hovering over the tabs reveals &quot;&lt;tabstrip&gt; _State=2&quot; or whatever number is appropriate.<br> <br> The only similar tabstrip error I have been able to find mentioned online involved security settings in IE, but setting them to low did not help.<br> <br> Has anyone else seen this behavior, or have an idea how to troubleshoot the issue?<br> <br> Thanks!<br> 2005-04-21T13:54:44-04:002005-04-21T13:54:44.133-04:00urn:uuid:00000000-0000-0000-0000-000003939675http://forums.asp.net/p/1571442/3939675.aspx/1?Treeview+Issue+Displaying+Plain+Text+Instead+Tree+NodesTreeview Issue: Displaying Plain Text Instead Tree Nodes <p>I have an&nbsp;issue when installing a web application in Win 2003 Server. I have installed the IE Web Control and I'm able to see the &quot;webctrl_client\1_0&quot; folder&nbsp;under the&nbsp;&quot;\inetpub\wwwroot&quot; folder.&nbsp;I&nbsp;have restart the iis and run &quot;aspnet_regiis -i -enable&quot; to activate the .net framework for aspnet.</p> <p>But the treeview is not displayed correctly. It only displayed &nbsp;a plain text. </p> <p>Is there any permission that needs to be set up?</p> <p>Thank you. I have been trying to figure it out for couple days now.</p> <p>Hendra</p> 2010-06-22T16:08:55-04:002010-06-22T16:08:55.5-04:00urn:uuid:00000000-0000-0000-0000-000003955514http://forums.asp.net/p/1574745/3955514.aspx/1?IE+webcontrols+support+for+VISTAIE webcontrols support for VISTA <p>Is there any download available for IE webcontrols with supported&nbsp;environment as Vista?&nbsp;</p> 2010-07-02T11:26:41-04:002010-07-02T11:26:41.97-04:00urn:uuid:00000000-0000-0000-0000-000003830403http://forums.asp.net/p/1557001/3830403.aspx/1?Web+Control+Treeview+Control+Active+NodeWeb Control Treeview Control Active Node <p>How do you change&nbsp;the current treenode on the Client using JavaScript... </p> <p>Get &amp; Set the active node? &nbsp;</p> <p><font color="#0000ff" size="2"><font color="#0000ff" size="2"></p> <p>Var treeNodeID;</p> <p>function <font size="2">ResetTreeNode(objRef)</font></p> <p>{ </p> <p><font color="#0000ff" size="2"><font color="#0000ff" size="2">var&nbsp;</font></font><font size="2"><font color="#000000"> tree = GetControlReference(objRef);</font></p> <p></p> <p></p> <p></font></p> <p><font color="#0000ff" size="2"><font color="#0000ff" size="2">var&nbsp;</font></font><font size="2"> result; </p> <p></p> </font> <p></p> <p></p> <p><font color="#0000ff" size="2"><font color="#0000ff" size="2"></p> <p>if</font></font></p> <p><font size="2"><font color="#000000">(TextBoxLenght() != 0)</font></p> </font> <p></p> <p></p> <p>&nbsp;{&nbsp;<font size="2">result = window.confirm(</font><font color="#a31515" size="2"><font color="#a31515" size="2">&quot;Any Unsaved Data will be lost. Do you wish to Continue?&quot;</font></font><font size="2">);</font></p> <p></font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">if&nbsp; </font></font><font color="#000000" size="2">(result==</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">true </font></font><font size="2"><font color="#000000">)</font>{ </p> <p></p> <p>ResetCounter();</p> <p></font></p> <p></p> <p></p> <p><font color="#0000ff" size="2"><font color="#0000ff" size="2">return</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">true</font></font><font size="2">;</font></p> <p><font size="2">}</p> <p></p> <p>&nbsp;</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">else</font></font></p> <p><font size="2">{ </p> </font> <p></p> <p></p> <p><font color="#008000" size="2"><font color="#008000" size="2">// this sets the treenode value to previous node</p> </font></font> <p><font size="2"></p> <p>&nbsp;tree.document.activeElement = treeNodeID;</p> <p></font></p> <p></p> <p></p> <p><font color="#0000ff" size="2"><font color="#0000ff" size="2">return</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">false</font></font><font size="2">; </font></p> <p><font size="2">}</p> <p></p> <p>&nbsp;</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">else</p> </font></font> <p><font size="2"></p> <p>{&nbsp; // this should store the postback active node if the textbox is empty </p> <p></font></p> <p><font color="#0000ff" size="2"><font color="#0000ff" size="2">if&nbsp;&nbsp;</font></font><font size="2"> ( tree.document.activeElement != undefined )</font></p> <p></p> <p><font color="#0000ff" size="2"><font color="#0000ff" size="2"><font size="2"></p> <p>treeNodeID = tree.document.activeElement;</p> </font></font></font> <p></p> <p></p> <p><font color="#0000ff" size="2"><font color="#0000ff" size="2">return</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">true</font></font><font size="2">;</p> <p></p> <p>}</p> <p>}</p> <p></font>&nbsp;</p> <p><span id="_marker">&nbsp;Please Help!!! </span></p> <p><span>Problem...</span></p> <p><span>1. Click node add text </span></p> <p><span>2. Click another node click cancel </span></p> <p><span>3. Click save </span></p> <p><span>The problem is that I am saving the wrong text under the wrong node.</span></p> <p><span>When I click the Save button it is taking the last selected node.&nbsp;Seem like post back is not&nbsp;occuring. &nbsp;</span></p> <p></p> <p></p> <p><span id="_marker">&nbsp;</span></p> <p></p> <p></p> <p><font size="2"><span id="_marker">&nbsp;</span></p> <p></font></p> <p><font size="2"></p> <p>&nbsp;</p> </font><font size="2"></font> <p></p> <p></p> 2010-05-11T18:16:37-04:002010-05-11T18:16:37.77-04:00urn:uuid:00000000-0000-0000-0000-000003742580http://forums.asp.net/p/1538554/3742580.aspx/1?Microsoft+Web+UI+WebControls+tree+question+asp+nmet+1+1Microsoft.Web.UI.WebControls tree question ,asp.nmet 1.1 <p>Dear All,</p> <p>&nbsp;</p> <p>I use <font size="2">Microsoft.Web.UI.WebControls , treelist to display the data appeared in the following xml file </font></p> <pre class="prettyprint">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt; &lt;TREENODES&gt; &lt;treenode text=&quot;test&quot; &gt; &lt;treenode text=&quot;yyy&quot; ID=&quot;xxx&quot; type=&quot;Page&quot;/&gt; &lt;treenode text=&quot;aaa&quot; ID=&quot;ggg&quot;/&gt; &lt;treenode text=&quot;bbb&quot; ID=&quot;fff&quot;/&gt; &lt;treenode text=&quot;ccc&quot; ID=&quot;eee&quot;/&gt; &lt;/treenode&gt; &lt;/TREENODES&gt;</pre> <P><BR>and want when I click in bbb for example go to the specified screen in my project </P> <P>I try using </P><pre class="prettyprint"> protected void TreeView1_Onclick(object sender, Microsoft.Web.UI.WebControls.TreeViewSelectEventArgs e) { Microsoft.Web.UI.WebControls.TreeNode selectedNode =this.TreeView1.GetNodeFromIndex(e.NewNode); string path = @"ASP/rrrrr/" +selectedNode.ID.Trim()+@".aspx"; Response.Redirect(path); }</pre> <p><br> but always the index is 0 (I open the source of the web page )</p> <p>How to capture the selected index and selected id please , also treeview don't contain a definiition of onclick event</p> <p>my html design of the page is </p> <p></p> 2010-03-21T13:13:04-04:002010-03-21T13:13:04.967-04:00urn:uuid:00000000-0000-0000-0000-000000402475http://forums.asp.net/p/402475/402475.aspx/1?TreeView+Drag+and+DropTreeView Drag and Drop Hello, I'm trying to figure out how to implement drag and drop in the new IE TreeView control for ASP.NET/C#. It doesn't seem to be possible, can anyone confirm that for me? I'd like to have similar functionality to the web front end to Outlook...that's a web based tree that you can drag the nodes around. Is this possible? Help! Thanks a million, gogoray 2003-11-24T18:01:17-05:002003-11-24T18:01:17.153-05:00urn:uuid:00000000-0000-0000-0000-000000391776http://forums.asp.net/p/391776/391776.aspx/1?How+do+I+find+out+which+CheckBoxList+item+has+been+clicked+How do I find out which CheckBoxList item has been clicked? How do I find out which CheckBoxList item has been clicked? I have a CheckBoxList on my web form with AutopostBack set to true. I have dynamically added a number of items to my checkboxlist, and now I want to pick up in CheckBoxList1_SelectedIndexChanged which checkbox the user has just checked or unchecked, how do I do this? Or is there better way? 2003-11-12T13:34:42-05:002003-11-12T13:34:42.78-05:00urn:uuid:00000000-0000-0000-0000-000001903260http://forums.asp.net/p/1157191/1903260.aspx/1?Looping+through+TreeView+Nodes+Looping through TreeView Nodes? <p>Hello,</p> <p>I'm using the Microsoft Web Control.&nbsp; I'm dynamically loading the control with data from the database where there are parent nodes and children nodes that could be up to 5 levels.&nbsp; I have a Javascript function that executes when a parent node is checked to automatically select all the children below it.&nbsp; Now I have to figure out a way to find out what nodes are selected so that I can process them properly.&nbsp; The only way I see this happening is if I create a hidden variable and loop through all the nodes in the TreeView and add the nodes to the variable if they are checked.&nbsp; However, I'm having a problem looping though the nodes.&nbsp; The only information I found was the SelectNodeIndex property which just gives me the node that was selected.&nbsp;&nbsp;</p> <p>This is my TreeView Format:</p> <ul> <li>&lt;div mce_keep=&quot;true&quot;&gt;Folder10&nbsp;&nbsp; &lt;/div&gt; <ul> <li>&lt;div mce_keep=&quot;true&quot;&gt;Folder1&lt;/div&gt; <ul> <li>&lt;div mce_keep=&quot;true&quot;&gt;Item1&lt;/div&gt;</li></ul> </li><li>&lt;div mce_keep=&quot;true&quot;&gt;Folder2&lt;/div&gt; <ul> <li>&lt;div mce_keep=&quot;true&quot;&gt;Item2&lt;/div&gt;</li></ul> </li></ul> </li><li>&lt;div mce_keep=&quot;true&quot;&gt;Folder 11&lt;/div&gt; <ul> <li>&lt;div mce_keep=&quot;true&quot;&gt;Folder 3&lt;/div&gt; <ul> <li>&lt;div mce_keep=&quot;true&quot;&gt;Item4&lt;/div&gt; </li><li>&lt;div mce_keep=&quot;true&quot;&gt;Item5&lt;/div&gt;</li></ul> </li></ul> </li><li>&lt;div mce_keep=&quot;true&quot;&gt;Folder 12&lt;/div&gt; <ul> <li>&lt;div mce_keep=&quot;true&quot;&gt;Folder4&lt;/div&gt; <ul> <li>&lt;div mce_keep=&quot;true&quot;&gt;Folder5&lt;/div&gt; <ul> <li>&lt;div mce_keep=&quot;true&quot;&gt;Folder6&lt;/div&gt; <ul> <li>&lt;div mce_keep=&quot;true&quot;&gt;Item6&lt;/div&gt;</li></ul> </li></ul> </li></ul> </li></ul> </li><li>&lt;div mce_keep=&quot;true&quot;&gt;Folder 13&lt;/div&gt; <ul> <li>&lt;div mce_keep=&quot;true&quot;&gt;Item7&lt;/div&gt;</li></ul> </li></ul> <p>&nbsp;</p> <p>I need to find out which Item was selected in the TreeView.&nbsp; So lets say that I&nbsp;checked the Folder10 and Folder12 (all the subfolders and items are selected automatically).&nbsp; Then I want the hidden variable to hold all the selected nodes in this format;</p> <p>Variable = Folder10_1_item1 (So the each parent node selected would start of with text &quot;Folder&quot; then the ID of the folder, then an &quot;_&quot; which means there is a child. Then the ID of the subFolder and then the text &quot;item&quot; and then the ID)</p> <p>&nbsp;So If I selected Folder10 and Folder12 in the TreeView, I would like the variable to hold this information</p> <p>Variable = Folder10_1_item1;Folder10_2_item2;Folder12_4_5_6_Item6</p> <p>&nbsp;Can someone please help?&nbsp; How can I loop through each node of the treeview to achieve this.</p> <p>&nbsp;Thank you</p> 2007-09-11T16:35:33-04:002007-09-11T16:35:33.17-04:00urn:uuid:00000000-0000-0000-0000-000001139128http://forums.asp.net/p/945217/1139128.aspx/1?Update+for+Tabstrip+controls+to+NET+2+0+Update for Tabstrip controls to .NET 2.0 ? <p>Is there an update for the tabstrip control to .NET 2.0&nbsp; ???</p> <p>I can't figure out how to use the tabstrip in vs 2005. The tabs just return plain text</p> <p>--------------------------------------------------------------</p> <p>VS2005 don't&nbsp;use the standard&nbsp;ISS to execute&nbsp;web-applications, so I have tried to place the webctrl_&nbsp;client folder in my project folder (c:\projects\) and also in my website folder&nbsp;&nbsp;(c:\projects\website) but it still don't work.</p> <p>I've also&nbsp;tried to put&nbsp;some code in my web.config file to change the path:</p> <font color="#0000ff" size="2"> <p>&lt;</font><font color="#800000" size="2">configurationSections</font><font color="#0000ff" size="2">&gt;&lt;</font><font color="#800000" size="2">section</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">name</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">MicrosoftWebControls</font><font size="2">&quot;</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">type</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">System.Configuration.NameValueSectionHandler, System, Version=1.0.3300.0,Culture=neutral,PublicKeyToken=b77a5c561934e089</font><font size="2">&quot;</font><font color="#0000ff" size="2">/&gt;&lt;/</font><font color="#800000" size="2">configurationSections</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;</font><font color="#800000" size="2">MicrosoftWebControls</font><font color="#0000ff" size="2">&gt;&lt;</font><font color="#800000" size="2">add</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">key</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">CommonFiles</font><font size="2">&quot;</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">value</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">TabstripHandlers</font><font size="2">&quot;</font><font color="#0000ff" size="2"> /&gt;&lt;/</font><font color="#800000" size="2">MicrosoftWebControls</font><font color="#0000ff" size="2">&gt;</p> </font> <p>&nbsp;</p> 2005-12-12T12:07:45-05:002005-12-12T12:07:45.117-05:00urn:uuid:00000000-0000-0000-0000-000000594183http://forums.asp.net/p/594183/594183.aspx/1?TreeView+client+side+scriptTreeView client side script Hi everyone, Adapting Vikram Bhardwaj's original code for fixing various bugs in the TreeView control, I've written up a JScript library. This code is independant of a given TreeView control, so as long as you setup the event handlers up properly it should work for multiple TreeView controls on the same page. Please let me know if you find any bugs. Instructions for using this script are found in the opening block comment. Note that the functionality I wanted is slightly different than Mr. Bhardwaj's, as explained in the comment. If this doesn't format properly, just send me an e-mail and I'll forward you the code. Thanks! John LaRusic <pre class="prettyprint">/* MODULE: MS IE TreeView Control client script PURPOSE: This code fixes numerous bugs in the Microsoft TreeView control, including the ability to allow postbacks A TreeView object setup to use this library will have the following functionality: a) When a given checkbox is checked, the parent check boxes will also be checked. *NOTE* This differs from the functionality that Mr. Bhardwaj originally supplied. b) If a given checkbox is unchecked, then if all the sibiling checkboxes are also not checked, the parent checkbox will become unchecked. There are still the occasional bug in this treeview, and I think its tied to the behavior file for the treeview. If you see a bug in this code, please bring my attention to it. My e-mail is johnlr@gmail.com thanks! AUTHOR: John LaRusic (with many thanks to Mr. Bhardwaj for the problem definition and solution) CREDIT: Vikram Bhardwaj wrote most of this code for a single TreeView object. I simply adapted it by making it a bit more portable (multiple TreeView objects can share this library) and fixing a couple of bugs. I also formatted the code nicely and added comments should anyone want to adapt this. Mr. Bhardwaj's original post on this code can be found at: http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&amp;PostID=301443 TO USE: Reference this script file on your page and add the following event handlers (where &quot;treeview1&quot; is the ID of your tree view object) &lt;script event=&quot;oncheck&quot; for=&quot;treeview1&quot;&gt; TreeView_OnCheck(treeview1); &lt;/script&gt; &lt;script event=&quot;onhover&quot; for=&quot;treeview1&quot;&gt; TreeView_OnHover(treeview1, event.treeNodeIndex); &lt;/script&gt; &lt;script event=&quot;onload&quot; for=&quot;window&quot;&gt; TreeView_Setup(treeview1); &lt;/script&gt; You also need to add an onclick event handler to your submit button to call the TreeView_ReadyForPostback for the tree. For example: Button1.Attributes.Add(&quot;onclick&quot;, _ &quot;TreeView_ReadyForPostback(treeview1)&quot;) */ /* FUNCTION: TreeView_OnCheck PURPOSE: Handles the OnCheck event for a TreeView control. This will check all the parent nodes above the &quot;checked&quot; node as well as check all the children nodes below the &quot;checked&quot; node. PARAMS: objTreeView - The TreeView control ID */ function TreeView_OnCheck(objTreeView){ var objNode = objTreeView.getTreeNode(objTreeView.clickedNodeIndex); // If this node was initially checked, then we need to handle a bug // in the TreeView control and do exactly the opposite. Once we do // this once, then we want to continue as normal if(TreeView_IsInitChecked(objNode)){ TreeView_SetChecked(objNode, !TreeView_IsChecked(objNode)); TreeView_SetInitChecked(objNode, false); } // Traverse the children and parents and refresh the tree var bChecked = TreeView_IsChecked(objNode); TreeView_TraverseChildren(objNode.getChildren(), bChecked); TreeView_TraverseParents(objNode, bChecked); //TreeView_RefreshTree(objTreeView.getChildren()); } /* FUNCTION: TreeView_OnHover PURPOSE: Handles the OnHover event for a TreeView control It selects the node the user hovered over. This is to help the program of an expanded node not being the selected node PARAMS: objTreeView - The TreeView control ID strNodeIndex - The index of the node to select */ function TreeView_OnHover(objTreeView, strNodeIndex){ objTreeView.selectedNodeIndex = strNodeIndex; } /* FUNCTION: TreeView_Setup PURPOSE: This sets up the TreeView control by building its StrVals property. PARAMS: objTreeView - The TreeView control ID */ function TreeView_Setup(objTreeView){ TreeView_SetInitCheckedNodes(objTreeView.getChildren()); } /* FUNCTION: TreeView_SetInitCheckedNodes PURPOSE: Sets which nodes in the tree are initially checked or not PARAMS: arrChildren - An array of children for a node RETURNS: The StrVal string for a given group of children */ function TreeView_SetInitCheckedNodes(arrChildren){ var objChild; for(var i = 0; i &lt; arrChildren.length; i&#43;&#43;){ objChild = arrChildren[i]; // Set whether the nodes were initially checked or not as well // as set their initial value... yes, they are the same thing, // but we might change whether a node has been &quot;initially // checked&quot; or not later to handle a bug. var blnIsChecked = TreeView_IsChecked(objChild); TreeView_SetInitChecked(objChild, blnIsChecked); TreeView_SetInitCheckValue(objChild, blnIsChecked); // Call this function recursively on the children TreeView_SetInitCheckedNodes(objChild.getChildren()); } } /* FUNCTION: TreeView_IsChecked PURPOSE: Determines if a given tree node is checked or not PARAMS: objNode - A tree node object RETURNS: True if the node is checked, false if not */ function TreeView_IsChecked(objNode){ // This seems like it should be done in one line, but it helps deal with // the case that the Checked attribute is equal to null if(objNode.getAttribute(&quot;Checked&quot;)) return true; else return false; } /* FUNCTION: TreeView_SetChecked PURPOSE: Sets if a tree node is checked or not PARAMS: objNode - A tree node object */ function TreeView_SetChecked(objNode, blnChecked){ objNode.setAttribute(&quot;Checked&quot;, blnChecked); } /* FUNCTION: TreeView_IsInitChecked PURPOSE: Determines if a given tree node was initially checked PARAMS: objNode - A tree node object RETURNS: True if the node was initially checked, false if not */ function TreeView_IsInitChecked(objNode){ return objNode.getAttribute(&quot;InitChecked&quot;); } /* FUNCTION: TreeView_SetInitChecked PURPOSE: Sets if a tree node is initially checked or not PARAMS: objNode - A tree node object blnChecked - True if the node was initially checked, false if not */ function TreeView_SetInitChecked(objNode, blnChecked){ objNode.setAttribute(&quot;InitChecked&quot;, blnChecked); } /* FUNCTION: TreeView_IsInitChecked PURPOSE: Determines if a given tree node was initially checked PARAMS: objNode - A tree node object RETURNS: True if the node was initially checked, false if not */ function TreeView_GetInitCheckValue(objNode){ return objNode.getAttribute(&quot;InitCheckValue&quot;); } /* FUNCTION: TreeView_SetInitCheckValue PURPOSE: Sets the initially checked value of a node PARAMS: objNode - A tree node object blnChecked - True if the node was originally checked, false if not */ function TreeView_SetInitCheckValue(objNode, blnChecked){ objNode.setAttribute(&quot;InitCheckValue&quot;, blnChecked); } /* FUNCTION: TreeView_TraverseChildren PURPOSE: A recursive function that traverses through the tree and checks or unchecks the nodes PARAMS: arrChildren - An array of nodes blnChecked - Determines whether to check the nodes or not */ function TreeView_TraverseChildren(arrChildren, blnChecked){ var objChild; for(var i = 0; i &lt; arrChildren.length; i&#43;&#43;){ objChild = arrChildren[i]; // Set whether the node is checked or not TreeView_SetChecked(objChild, blnChecked); // Call this function recursively on the children of the node TreeView_TraverseChildren(objChild.getChildren(), blnChecked); } } /* FUNCTION: TreeView_TraverseParents PURPOSE: A recursive function that traverses through a node's parents and checks them PARAMS: arrChildren - An array of nodes blnChecked - Determines whether to check the nodes or not */ function TreeView_TraverseParents(objNode, blnChecked){ var objParent = objNode.getParent(); if(objParent != null){ // If we are selecting a checkbox, then we want to check all the // parent checkboxes as well if(blnChecked){ TreeView_SetChecked(objParent, true); } // Otherwise, we want to check to see if any of the siblings of the // original node are also checked. If they are all not checked, // then we want to uncheck the parent. else{ var blnFlag = true; var arrSiblings = objParent.getChildren(); for(var i = 0; i &lt; arrSiblings.length ; i&#43;&#43;){ if(TreeView_IsChecked(arrSiblings[i])) blnFlag = false; } if(blnFlag) TreeView_SetChecked(objParent, false); } // Call this function recursively on the parent TreeView_TraverseParents(objParent, blnChecked); } } /* FUNCTION: TreeView_ReadyForPostback PURPOSE: Readies a tree for a postback PARAMS: objTreeView - A TreeView control */ function TreeView_ReadyForPostback(objTreeView){ if(objTreeView != null) TreeView_CheckVals(objTreeView, objTreeView.getChildren()); else alert(&quot;ERROR: TreeView object is null&quot;); } /* FUNCTION: TreeView_CheckVals PURPOSE: Signals that nodes have been checked for the postback PARAMS: objTreeView - A TreeView control arrChildren - An array of child nodes */ function TreeView_CheckVals(objTreeView, arrChildren){ var objChild; // Loop through all the nodes for(var i = 0; i &lt; arrChildren.length; i&#43;&#43;){ objChild = arrChildren[i]; // If the current value of the node is different from its initial // value, then we want to queue the oncheck event if(TreeView_IsChecked(objChild) != TreeView_GetInitCheckValue(objChild)) objTreeView.queueEvent(&quot;oncheck&quot;, objChild.getNodeIndex()); // Call this function recursively the child nodes of the current // node TreeView_CheckVals(objTreeView, objChild.getChildren()); } } /* FUNCTION: TreeView_RefreshTree PURPOSE: ??? - This was in the Vikram Bhardwaj original code... not sure if its necessary or not, but I'm leaving it here... uncomment the call to it in the TreeView_OnCheck method if you need it PARAMS: objTreeView - A TreeView control */ /* function TreeView_RefreshTree(arrChildren){ var objChild; for(var i = 0; i &lt; arrChildren.length; i&#43;&#43;){ objChild = arrChildren[i]; TreeView_SetChecked(objChild, TreeView_IsChecked(objChild)); TreeView_RefreshTree(objChild.getChildren()); } } */</pre> 2004-06-04T14:15:01-04:002004-06-04T14:15:01.263-04:00urn:uuid:00000000-0000-0000-0000-000000906815http://forums.asp.net/p/880333/906815.aspx/1?problem+with+treeview+node+getAttributeproblem with treeview node getAttribute <p><font color="#000000">hello.</font></p> <p><font color="#000000">im using the treeview control</font></p> <p><font color="#000000">when i&nbsp; use&nbsp; </font><font size="2"><font color="#0000ff">node.getAttribute(&quot;Expandable&quot;)</font></p> <p><font color="#000000">i get <font color="#0000ff">null</font> instead if true/false.</font></p> <p><font color="#000000">does anyone have any idea[I] why?</font></p> </font> 2005-04-26T11:03:09-04:002005-04-26T11:03:09.05-04:00urn:uuid:00000000-0000-0000-0000-000003587928http://forums.asp.net/p/1508833/3587928.aspx/1?How+to+navigate+betweeb+tabs+How to navigate betweeb tabs <p>We are trying to add 2 tabs in a &nbsp;ASP tabstrip&nbsp;in a web page.</p> <p>We have written the following code&nbsp; where the tabs are being displayed in a table.</p> <p>But we are not able to navigate between the tabs.</p> <p>Here our task is as follows.</p> <p>&nbsp;We have created 2 tabs in two columns and added 4 panels in the rows of the table.</p> <p>Now based on the tab selected we need to make only one of the panel active.</p> <p>Please help us .</p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p><font size="2"></p> <p>&nbsp;</p> <p></font></p> <font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">table</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">border</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&quot;0&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">cellpadding</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;0&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">cellspacing</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;0&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">title</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;practicegrid&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">width</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;100%&quot;</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;</font></font> <p><font size="2"></p> <p>&nbsp;</p> <p></font></p> <font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">tr</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;</font></font> <p><font size="2"></p> <p>&nbsp;</p> <p></font></p> <font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">td</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;</font></font> <p><font size="2"></p> <p>&nbsp;</p> <p></font></p> <font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">aspnetTab</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">:</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">TabStrip</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">ID</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;tabstrip1&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">Enabled</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;true&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">runat</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;server&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">AutoPostBack</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;true&quot;&gt;</font></font> <p><font size="2"></p> <p>&nbsp;</p> <p></font></p> <font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">aspnetTab</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">:</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">Tab</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">Text</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;tabstrips1&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">ID</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;tab1&quot;</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">/&gt;</font></font> <p><font size="2"></p> <p>&nbsp;</p> <p></font></p> <font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">aspnetTab</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">:</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">TabSeparator</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">/&gt;</font></font> <p><font size="2"></p> <p>&nbsp;</p> <p></font></p> <font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">aspnetTab</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">:</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">Tab</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">Text</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;tabstrips2&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">ID</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;tab2&quot;</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">/&gt;</font></font> <p><font size="2"></p> <p>&nbsp;</p> <p></font></p> <font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">aspnetTab</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">:</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">TabSeparator</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">/&gt;</font></font> <p><font size="2"></p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p></font></p> <font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;/</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">aspnetTab</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">:</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">TabStrip</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;/</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">td</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;</font></font> <p><font size="2"></p> <p>&nbsp;</p> <p></font></p> <font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;/</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">tr</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;</font></font> <p><font size="2"></p> <p>&nbsp;</p> <p>&nbsp;</p> <p></font></p> <font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">tr</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;</font></font> <p><font size="2"></p> <p>&nbsp;</p> <p></font></p> <font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">td</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;</font></font> <p><font size="2"></p> <p>&nbsp;</p> <p>&nbsp;</p> <p></font></p> <font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">asp</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">:</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">Panel</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">ID</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;panel0&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">runat</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;server&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">Visible</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;False&quot;</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">asp</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">:</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">Button</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">ID</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;Button0&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">Text</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;button0&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">runat</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;server&quot;</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">/&gt;</font></font> <p><font size="2"></p> <p>&nbsp;</p> <p></font></p> <font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;/</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">asp</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">:</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">Panel</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;</font></font> <p><font size="2"></p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p></font></p> <font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">asp</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">:</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">Panel</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">ID</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;panel1&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">runat</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;server&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">Visible</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;False&quot;&gt;</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">asp</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">:</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">Button</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">ID</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;Button1&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">Text</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;button1&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">runat</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;server&quot;</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">/&gt;</font></font> <p><font size="2"></p> <p>&nbsp;</p> <p></font></p> <font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;/</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">asp</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">:</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">Panel</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;</font></font> <p><font size="2"></p> <p>&nbsp;</p> <p>&nbsp;</p> <p></font></p> <font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">asp</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">:</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">Panel</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">ID</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;panel2&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">runat</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;server&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">Visible</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;False&quot;&gt;</font></font> <p><font size="2"></p> <p>&nbsp;</p> <p>&nbsp;</p> <p></font></p> <font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">asp</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">:</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">Button</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">ID</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;Button2&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">Text</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;button2&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">runat</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;server&quot;</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">/&gt;</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;/</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">asp</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">:</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">Panel</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;</font></font> <p><font size="2"></p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p></font></p> <font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">asp</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">:</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">Panel</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">ID</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;panel3&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">runat</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;server&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">Visible</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;False&quot;&gt;</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">asp</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">:</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">Button</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">ID</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;Button3&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">Text</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;button3&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">runat</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;server&quot;</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">/&gt;</font></font> <p><font size="2"></p> <p>&nbsp;</p> <p></font></p> <font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;/</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">asp</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">:</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">Panel</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;</font></font> <p><font size="2"></p> <p>&nbsp;</p> <p></font></p> <font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;/</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">td</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;</font></font> <p><font size="2"></font>&nbsp;</p> <p><font size="2">&nbsp;</p> <p>&nbsp;</p> <p></font></p> <font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;/</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">tr</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;</font></font> <p><font size="2"></p> <p>&nbsp;</font></p> <p></p> <p><font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;/</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">table</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;</font></font></p> <p><font color="#0000ff" size="2"></font>&nbsp;</p> <p><font color="#0000ff" size="2"></font>&nbsp;</p> <p>and our C# code is as follows: </p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p><font color="#0000ff" size="2"><font color="#0000ff" size="2"></font></font></p> <p>protected</p> <p><font size="2"></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">void</font></font><font size="2"> Page_Load(</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">object</font></font><font size="2"> sender, </font><font color="#2b91af" size="2"><font color="#2b91af" size="2">EventArgs</font></font></p> <p><font size="2">e)</font></p> <p>{</p> <p>&nbsp;</p> <p><font color="#0000ff" size="2"><font color="#0000ff" size="2">int</font></font></p> <p><font size="2">i;</font></p> <p>&nbsp;</p> <p>&nbsp;</p> <p><font color="#0000ff" size="2"><font color="#0000ff" size="2">for</font></font></p> <p><font size="2">(i = 0; i &lt; 2; i&#43;&#43;)</font></p> <p>{</p> <p>&nbsp;</p> <p><font color="#2b91af" size="2"><font color="#2b91af" size="2">Panel</font></font><font size="2"> pnl = (</font><font color="#2b91af" size="2"><font color="#2b91af" size="2">Panel</font></font><font size="2">)FindControl(</font><font color="#a31515" size="2"><font color="#a31515" size="2">&quot;panel&quot;</font></font></p> <p><font size="2">&#43; i.ToString());</font></p> <p>&nbsp;</p> <p><font color="#0000ff" size="2"><font color="#0000ff" size="2">if</font></font></p> <p><font size="2">(tabstrip1.SelectedIndex == i) </font></p> <p>pnl.Visible = </p> <p><font color="#0000ff" size="2"><font color="#0000ff" size="2">true</font></font></p> <p><font size="2">;</font> </p> <p>&nbsp;</p> <p>&nbsp;</p> <p></p> <p>&nbsp;</p> <p>&nbsp;</p> 2009-12-29T16:02:31-05:002009-12-29T16:02:31.56-05:00urn:uuid:00000000-0000-0000-0000-000003567658http://forums.asp.net/p/1504506/3567658.aspx/1?what+is+the+difference+between+asp+net+server+controls+and+IE+web+controls+what is the difference between asp.net server controls and IE web controls? <p>If someone knows why ithey are not part of asp.net formal tutorial or even microsoft certification course or are they silver bullet?, pls help to explain as much details as possible? thanks very much.<br> </p> 2009-12-16T03:27:37-05:002009-12-16T03:27:37.917-05:00urn:uuid:00000000-0000-0000-0000-000003562672http://forums.asp.net/p/1503538/3562672.aspx/1?Problem+with+IE8+compatability+Problem with IE8 compatability. <p>I have aproblem on a website I build,</p> <p>In the home page there are a couple of problems that occur&nbsp;if U dont press compatibility button:<br> <br> 1. The mainnav text &nbsp;drops down.<br> 2. The Font used for text which is dual language font does not apear on its US form.&nbsp;</p> 2009-12-13T16:22:57-05:002009-12-13T16:22:57.52-05:00urn:uuid:00000000-0000-0000-0000-000001349207http://forums.asp.net/p/1010828/1349207.aspx/1?Disabling+treeview+eventsDisabling treeview events <p>Thanks to anyone that can help me with this.&nbsp; Before laying out the problem I'm having, I should mention that my project is a web part designed for a Sharepoint Portal.&nbsp; From what I can tell, that limits me to a non-visual implementation of the treeview and forces me to do everything in a sort of a &quot;code behind&quot; page.</p> <p>With that said, I have been able to successfully implement the treeview into a web part and it works quite well.&nbsp; The issue I'm having is that the code that generates my tree takes a little while to run and I'd like to minimize the number of postbacks.&nbsp; More specifically, I would like to limit postbacks to &quot;selectedindexchanged&quot; events only.&nbsp; The problem is that this control appears to be &quot;all or nothing&quot; in terms of events.&nbsp; In other words, if I&nbsp;set autopostback to &quot;false&quot;, I can't get the selectedindexchanged event to fire.&nbsp; If I set autopostback to &quot;true&quot;, I get a postback on node expand and collapse events as well as the index changed event.</p> <p>So, the question is... can I:</p> <p>- somehow manually force a postback&nbsp;for the selectedinexchanged event when the autopostback is set to &quot;false&quot; or...</p> <p>-&nbsp;somehow disable the postback for the expand/collapse events when the autopostback is set to &quot;true&quot;?</p> <p>- Pete</p> 2006-07-24T02:14:24-04:002006-07-24T02:14:24.89-04:00urn:uuid:00000000-0000-0000-0000-000002504595http://forums.asp.net/p/1293386/2504595.aspx/1?How+to+use+IE+WebControls+in+VS+2008+How to use IE WebControls in VS 2008? <p>Hi,</p> <p>I recently got my hands on an old ASP.Net 1.1 web application and I am trying to open it in my VS 2008 ide. I'm having problems getting it to compile because of the missing Microsoft.Web.UI.WebControls dll.</p> <p>After much searching, I found out that I had to install IIS and download and install the IE Web Controls (http://www.microsoft.com/DOWNLOADS/details.aspx?familyid=FAC6350C-8AD6-4BCA-8860-8A6AE3F64448&amp;displaylang=en), please check if the link is correct.</p> <p>But after installing and rebooting, I still do not see the assembly in my visual studio reference list.</p> <p>What should I do next?</p> <p>&nbsp;</p> <p>Thanks!</p> <p>Rafferty<br> &nbsp;</p> 2008-07-22T03:12:36-04:002008-07-22T03:12:36.703-04:00urn:uuid:00000000-0000-0000-0000-000003443300http://forums.asp.net/p/1478260/3443300.aspx/1?Treeview+control+and+TreeNodeXslSrc+errorTreeview control and TreeNodeXslSrc error <p>&nbsp;I have a treeview control that works fine until I modify web.config to protect static files. Then I get the following error:</p> <p style="padding-left:30px">Server Error in '/' Application.<br> --------------------------------------------------------------------------------</p> <p style="padding-left:30px">The XML loaded from TreeNodeSrc=XMLFile1.xml, TreeNodeXslSrc= did not contain the required outer &lt;TREENODES&gt; container.</p> <p>Hoping someone can help.</p> <p>To reproduce, I can use the following TreeView.ASPX file (from <a href="http://www.15seconds.com/issue/030827.htm"> http://www.15seconds.com/issue/030827.htm</a>): </p> <p style="padding-left:30px">&lt;%@ Register TagPrefix=&quot;iewc&quot; Namespace=&quot;Microsoft.Web.UI.WebControls&quot; Assembly=&quot;Microsoft.Web.UI.WebControls&quot; %&gt;<br> &lt;%@ Page Language=&quot;vb&quot; %&gt;<br> &lt;HTML&gt;<br> &nbsp; &lt;HEAD&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp; &lt;title&gt;XMLIn&lt;/title&gt; <br> &nbsp; &lt;/HEAD&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp; &lt;body&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;form id=&quot;Form1&quot; method=&quot;post&quot; runat=&quot;server&quot;&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;iewc:TreeView id=&quot;TreeView1&quot; runat=&quot;server&quot; TreeNodeSrc=&quot;XMLFile1.xml&quot;&gt;&lt;/iewc:TreeView&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/form&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp; &lt;/body&gt;<br> &lt;/HTML&gt;</p> <p>with the following XMLFile1.XML file:</p> <p style="padding-left:30px">&nbsp;&lt;TREENODES&gt;<br> &nbsp;&nbsp;&nbsp; &lt;treenode text=&quot;Parent1&quot;&gt;<br> &nbsp;&nbsp;&nbsp; &lt;treenode text=&quot;Child-1a&quot;/&gt;<br> &nbsp;&nbsp;&nbsp; &lt;treenode text=&quot;Child-1b&quot;/&gt;<br> &lt;/treenode&gt;<br> &nbsp;&nbsp; &lt;treenode text=&quot;Parent2&quot;&gt;<br> &nbsp;&nbsp; &lt;treenode text=&quot;Child-2a&quot;/&gt;<br> &nbsp;&nbsp; &lt;treenode text=&quot;Child-2b&quot;/&gt;<br> &nbsp;&nbsp; &lt;/treenode&gt;<br> &lt;/TREENODES&gt;</p> <p>This&nbsp;works fine, with standard web.config file. However, I want to change the site to protect static files,&nbsp;so I add the following into web.config as the first lines within&nbsp;the &lt;system.webServer&gt; tag:</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;modules&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&lt;remove name=&quot;FormsAuthenticationModule&quot; /&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&lt;add name=&quot;FormsAuthenticationModule&quot; type=&quot;System.Web.Security.FormsAuthenticationModule&quot; /&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&lt;remove name=&quot;UrlAuthorization&quot; /&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&lt;add name=&quot;UrlAuthorization&quot; type=&quot;System.Web.Security.UrlAuthorizationModule&quot; /&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&lt;remove name=&quot;DefaultAuthentication&quot; /&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&lt;add name=&quot;DefaultAuthentication&quot; type=&quot;System.Web.Security.DefaultAuthenticationModule&quot; /&gt;&nbsp; <br> &nbsp;&nbsp;&nbsp; &nbsp;&lt;/modules&gt;</p> <p>(For an explanation see <a href="http://learn.iis.net/page.aspx/244/how-to-take-advantage-of-the-iis7-integrated-pipeline/"> http://learn.iis.net/page.aspx/244/how-to-take-advantage-of-the-iis7-integrated-pipeline/</a>) 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&nbsp;workaround or know the cause?</p> <p>&nbsp;</p> <p>Thanks!</p> <p>Spyros</p> <p>&nbsp;</p> 2009-10-06T13:49:56-04:002009-10-06T13:49:56.797-04:00urn:uuid:00000000-0000-0000-0000-000001094976http://forums.asp.net/p/931998/1094976.aspx/1?How+to+Pre+select+a+tab+in+Microsoft+Web+UI+WebControls+tabstripHow to Pre-select a tab in Microsoft.Web.UI.WebControls tabstrip Is it possible to pre-select a tab when u call a page from a different page. For example i need to select the 3rd tab when the page loads.. 2005-10-27T06:19:08-04:002005-10-27T06:19:08.297-04:00