﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebTreeView - NodeInternalID -  What is it?</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/NodeInternalID---What-is-it/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>NodeInternalID -  What is it?</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/NodeInternalID---What-is-it/</link><pubDate>Fri, 28 Aug 2009 22:54:25 GMT</pubDate><dc:creator>james</dc:creator><category>WebTreeView</category><description>&lt;p&gt;Matt, glad to hear that you made it &lt;img id="" src="http://www.intersoftpt.com/WebResources/Images/Community/Editor/smiley1.gif" style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; " /&gt;&lt;/p&gt;&lt;p&gt;- James&lt;/p&gt; </description></item><item><title>NodeInternalID -  What is it?</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/NodeInternalID---What-is-it/</link><pubDate>Fri, 28 Aug 2009 05:44:49 GMT</pubDate><dc:creator>matthiasmax</dc:creator><category>WebTreeView</category><description>&lt;p&gt;Hi James,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I made it. I can set values of hidden fields now by javascript and use these in Page_Init. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;THanks &lt;br /&gt;&lt;/p&gt;</description></item><item><title>NodeInternalID -  What is it?</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/NodeInternalID---What-is-it/</link><pubDate>Thu, 27 Aug 2009 06:19:36 GMT</pubDate><dc:creator>matthiasmax</dc:creator><category>WebTreeView</category><description>&lt;p&gt;Hi James,&lt;br /&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;
&lt;p&gt;thanks for that solution. Can you tell me how that javascript code would look like? Would I have to modifiy the doPostBack function?&lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank you &lt;br /&gt;&lt;/p&gt;</description></item><item><title>NodeInternalID -  What is it?</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/NodeInternalID---What-is-it/</link><pubDate>Thu, 27 Aug 2009 06:14:30 GMT</pubDate><dc:creator>james</dc:creator><category>WebTreeView</category><description>&lt;span class="Apple-style-span" style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium 'times new roman'; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0,0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"&gt;&lt;span class="Apple-style-span" style="font-family: 'lucida sans unicode'; font-size: 13px"&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px"&gt;Hi Matt,&lt;br /&gt;&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px"&gt;I see. In this case, I suggest you to better pass the information you need in a separate hidden input, rather than relying on EVENTARGUMENT variable.&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px"&gt;For instance, if you need to know the selected node in TreeView and obtain the information in Page_Init, you can assign the information to a hidden input field in client side prior to the postback. That way, you can access the data you need through Page.Request["AdditionalInfo"].&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px"&gt;Hope this helps.&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;</description></item><item><title>NodeInternalID -  What is it?</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/NodeInternalID---What-is-it/</link><pubDate>Thu, 27 Aug 2009 05:01:01 GMT</pubDate><dc:creator>matthiasmax</dc:creator><category>WebTreeView</category><description>&lt;p&gt;Hi James,&lt;br /&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I'm aware of the character of the __EVENTARGUMENT. The thing is I load user controls dynamically and therefore I need to initialize them in the Page_Init event of the page because otherwise (for example when I would do this in Page_Load or later) the event wiring up of that user control would not work anymore.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;When I would use your solution and I already tried it in NodeSelectChanged its the same problem: Its AFTER Page_Init. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Also another issue is that it seems when you use LoadOnDemand the Nodes collection is always empty? I can at no stage get any node back from the TreeView. Not before and not after Page_Load?? &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;THank you. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>NodeInternalID -  What is it?</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/NodeInternalID---What-is-it/</link><pubDate>Thu, 27 Aug 2009 04:52:43 GMT</pubDate><dc:creator>james</dc:creator><category>WebTreeView</category><description>&lt;p&gt;Hello Matt,&lt;/p&gt;
&lt;p&gt;It is not a good practice to use EVENTARGUMENT variable for page processing, because the variable is intended only for control developers to manage the control's life cycle during postback.&lt;/p&gt;
&lt;p&gt;If you would like to get information about a node during certain event, try to check the event parameter provided in the event parameter.&lt;/p&gt;
&lt;p&gt;For example, you can get the current node during DragDrop event by accessing e.Node. See following snippe&lt;/p&gt;&lt;pre&gt;protected void WebTreeView1_DragDrop(object sender, ISNet.WebUI.WebTreeView.WebTreeViewDragDropEventArgs e)
    {
        string text = e.Node.Text;
    }&lt;/pre&gt;
&lt;p&gt;Hope this helps,&lt;br /&gt;James.&lt;/p&gt;</description></item><item><title>NodeInternalID -  What is it?</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/NodeInternalID---What-is-it/</link><pubDate>Wed, 26 Aug 2009 14:49:55 GMT</pubDate><dc:creator>matthiasmax</dc:creator><category>WebTreeView</category><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I'm using the  __EVENTARGUMENT variable to determine several actions in the Page_Init event of my page:&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Dim argument As String = Request.Params.Get("__EVENTARGUMENT") &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;However this variable contains info about the Action (e.g, SelewctodeChanged) AND an "NodeInternalID". &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;What is this? And how can I use it to get more info about the node for example out of the collection in .Nodes. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt; I tried setting different things like .Value . DataItem .Tag etc in the creation phase of ht enodes without success...&lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thank you &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>