Hi all,
I read some articles on the web and realized that if the treeview is set to PopulateNodesFromClient=True and its treenodes set to PopulateOnDemand=True, it requires no postback when populating these treenodes. So I placed a PopulateNodesFromClient=True treeview containing some PopulateOnDemand=True treenodes on an ASP.NET empty web page, then I wrote some codes to properly handle the OnTreeNodePopulate event of the treeview. Finally I placed a statement Debug.WriteLine("IsPostBack? " & Me.IsPostBack()) inside the function that handles the Page_Load event of this ASP.NET web page.
The first time I entered this web page, the debug output window of VS.NET showed that "IsPostBack? True".
When I clicked to expand (populate) a treenode, I had expected that it would show "IsPostBack? False" since people say this does not require a postback.
However, it showed "IsPostBack? True".
This means that it still actually require a postback, am I right?
Why must it require a postback?
What do you think?
Thanks.