﻿<?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 - WebTreeView content lost after WebButton postback</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/WebTreeView-content-lost-after-WebButton-postback/</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>WebTreeView content lost after WebButton postback</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/WebTreeView-content-lost-after-WebButton-postback/</link><pubDate>Fri, 22 Jan 2010 01:17:58 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebTreeView</category><category>WebButton</category><description>&lt;p&gt;Ok, glad to hear that.&lt;/p&gt;&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>WebTreeView content lost after WebButton postback</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/WebTreeView-content-lost-after-WebButton-postback/</link><pubDate>Thu, 21 Jan 2010 21:07:35 GMT</pubDate><dc:creator>wayhang@elutions.com.my</dc:creator><category>WebTreeView</category><category>WebButton</category><description>&lt;p&gt;It works now.&lt;/p&gt;
&lt;p&gt;Thanks! &lt;img style="border-bottom: medium none; border-left: medium none; border-top: medium none; border-right: medium none" src="http://www.intersoftpt.com/WebResources/Images/Community/Editor/smiley2.gif" /&gt; &lt;/p&gt;</description></item><item><title>WebTreeView content lost after WebButton postback</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/WebTreeView-content-lost-after-WebButton-postback/</link><pubDate>Thu, 21 Jan 2010 02:08:42 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebTreeView</category><category>WebButton</category><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I noticed what caused your error now. It is because you used Master Page. While we are using HiddenField with attribute "runat=server", the clientID has been changed because inside MasterPage.&lt;/p&gt;
&lt;p&gt;There are 2 workarounds to get the hidden object:&lt;/p&gt;
&lt;p&gt;1.You can get new changed client id by using "view source" when running the page. You can search the changed id from there.&lt;br /&gt;&lt;br /&gt;e,g if you search for "hfCheckedNode", the new client id should be "ctl00_ContentPlaceHolder1_hfCheckedNode".&lt;/p&gt;
&lt;p&gt;2. Instead used the hard/static way, there is another workaround to use.&lt;/p&gt;
&lt;p&gt;We need to add Hidden input html control without "runat=server" attribute. Then, cast the object in the value,&lt;br /&gt;such as &lt;b&gt;&lt;i&gt;&amp;lt;input id="Hidden1" type="hidden" value="&amp;lt;%=hfCheckedNode.ClientID %&amp;gt;"/&amp;gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;For further details, please look into my modified sample. I have also changed some codes to get checkednodes.&lt;br /&gt;&lt;br /&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>WebTreeView content lost after WebButton postback</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/WebTreeView-content-lost-after-WebButton-postback/</link><pubDate>Wed, 20 Jan 2010 02:08:58 GMT</pubDate><dc:creator>wayhang@elutions.com.my</dc:creator><category>WebTreeView</category><category>WebButton</category><description>&lt;p&gt;hI,&lt;/p&gt;
&lt;p&gt;i tried the code in WebTreeView sample project &amp; it doesn't work either. Attached is the aspx file i make changes to GetCheckedNodes example.&lt;/p&gt;
&lt;p&gt;Pls advise.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>WebTreeView content lost after WebButton postback</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/WebTreeView-content-lost-after-WebButton-postback/</link><pubDate>Tue, 19 Jan 2010 23:24:33 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebTreeView</category><category>WebButton</category><description>&lt;p&gt;Hi, &lt;/p&gt;&lt;p&gt;It seems the value or object is null. Please ensure that you are not putting the hiddenList control inside a template or something. The code i gave you is HiddenList control code. If you are using the other control, it might be not working. I could not just inspect what the error just by looking the screenshots. It is better if you can provide me your working sample so i can debug to see where the real problem is.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>WebTreeView content lost after WebButton postback</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/WebTreeView-content-lost-after-WebButton-postback/</link><pubDate>Tue, 19 Jan 2010 04:02:10 GMT</pubDate><dc:creator>wayhang@elutions.com.my</dc:creator><category>WebTreeView</category><category>WebButton</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Attached is the error i hit when i make use of your code.&lt;/p&gt;
&lt;p&gt;I hit the error when i check on any node of the WebTreeView.&lt;/p&gt;
&lt;p&gt;Pls advise.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>WebTreeView content lost after WebButton postback</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/WebTreeView-content-lost-after-WebButton-postback/</link><pubDate>Mon, 18 Jan 2010 22:37:52 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebTreeView</category><category>WebButton</category><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Here is my attached sample about how to save the checked nodes into HiddenField. But once again, i need to tell you that it is very hard to persist the checkboxes value in Unbound WebTreeView because all the nodes would be get rendered again every Postback. I suggest you to persist the checkbox value via client side. &lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>WebTreeView content lost after WebButton postback</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/WebTreeView-content-lost-after-WebButton-postback/</link><pubDate>Mon, 18 Jan 2010 03:41:57 GMT</pubDate><dc:creator>wayhang@elutions.com.my</dc:creator><category>WebTreeView</category><category>WebButton</category><description>&lt;p&gt;Hi Handy,&lt;/p&gt;
&lt;p&gt;I can get the checked nodes on client side event. But when i tried to save the checked nodes into hidden input (asp.net label control), it seems like i'm not able to save it. Can you show me how to do it?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>WebTreeView content lost after WebButton postback</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/WebTreeView-content-lost-after-WebButton-postback/</link><pubDate>Fri, 08 Jan 2010 09:51:41 GMT</pubDate><dc:creator>theDiv</dc:creator><category>WebTreeView</category><category>WebButton</category><description>&lt;p&gt;Hi Handy,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;That works for me.  I dont think I saw anything in the sample code or documentation on using Page_Init for data binding, but maybe I missed something.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks for your help!&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Darren&lt;/p&gt;</description></item><item><title>WebTreeView content lost after WebButton postback</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/WebTreeView-content-lost-after-WebButton-postback/</link><pubDate>Thu, 07 Jan 2010 22:44:47 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebTreeView</category><category>WebButton</category><description>&lt;p&gt;Hello All,&lt;/p&gt;&lt;p&gt;It would be great if you guys could help me by sending me a simple sample which replicates your issue. Sometimes, the issue occured because the way you bound WebTreeView in incorrect event. &lt;/p&gt;
&lt;p&gt;E.g for Darrent,&lt;/p&gt;
&lt;p&gt;I think you should not bind in PageLoad. You will need to bind inside Page_Init.&lt;/p&gt;
&lt;p&gt;Here is my attached sample and hope this can help you.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>WebTreeView content lost after WebButton postback</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/WebTreeView-content-lost-after-WebButton-postback/</link><pubDate>Tue, 22 Dec 2009 20:46:30 GMT</pubDate><dc:creator>wayhang@elutions.com.my</dc:creator><category>WebTreeView</category><category>WebButton</category><description>&lt;p&gt;I have a form with 2 WebCombo and 1 WebTab and 1 WebTreeView and 1 WebButton.&lt;/p&gt;
&lt;p&gt;My WebCombo1 record is retrieved from sql. &lt;/p&gt;
&lt;p&gt;When user selected any record in WebCombo1, I'll retrieve data from sql based on record selected in WebCombo1, and populate the records into WebCombo2.&lt;/p&gt;
&lt;p&gt;When user selected any record in WebCombo2, i'll retrieve data from sql based on record selected in WebCombo2, and populate the records into WebTreeView (the WebTreeView reside in the WebTab).&lt;/p&gt;
&lt;p&gt;So far, everything works fine. When user check node in WebTreeView, and click the WebButton (also reside in WebTab), in the WebButton_Clicked event (i use AutoPostBack=True and PostBackMode=FullPostBack), i try to get checked nodes by using WebTreeView.CheckedNodes. But no nodes is returned.&lt;/p&gt;
&lt;p&gt;Another issue here is after user click the WebButton, and the page is PostBack, then the content in the WebTreeView is gone.&lt;/p&gt;
&lt;p&gt;Any suggestion?&lt;/p&gt;</description></item></channel></rss>