2
Answers

populating treeview from a class returning treeview

pvathy

pvathy

14y
3.4k
1

Hello,
**   I have created a class to build and return a treeview. 
**   On my web page, I have created a 'treeview control' and I want to populate this treeview control from the class that returns the treeview. 
**   When I debug the application, I see that the class is building the tree perfectly with the nodes and all.  The debug watch window shows that the treeview control in the page also gets the data from this 'treeview' returned by the class correctly. 
**   The problem is the 'TREEVIEW CONTROL' is not displaying anything on the page itself.  
eg:
CLASS RETURNING TREEVIEW:
namespace mytree
{
      public class buildtree
      {
               public treeview fill_my_tree()
            {
                  logic written here to fill the tree;
                  return(mytreeview);
            }
      }
}
 
IN MY WEBPAGE:
      buildtree tree1= new buildtree();
         treeview1 = tree1.fill_my_tree();
PROBLEM: treeview1 in debug mode shows the nodes in the watch window.  But, nothing is displayed on the user screen.
Can someone help me?  Thanks for your help and time.
FYI: I am developing in c#, VS 2008.
Thanks..
 
 
 
 
 
 
Answers (2)
0
Pramod Thakur

Pramod Thakur

NA 7.3k 790.9k 7y
You can clear your browser cache manually or write a code for it. I am using jquery for it.
  
  1. $('.button').click(function() {  
  2.     $.ajax({  
  3.         url: "",  
  4.         context: document.body,  
  5.         success: function(s,x){  
  6.   
  7.             $('html[manifest=saveappoffline.appcache]').attr('content''');  
  8.                 $(this).html(s);  
  9.         }  
  10.     });   
  11. });  
 
 
0
Nilesh Shah

Nilesh Shah

NA 22.3k 214.4k 7y
mostly the proxy server caches the content of web pages,it's not your browser
 
if you check outside your organization it will be working.