hi i have developed treeview which shows categories and it's subcategories using asp.net.
everything works fine.
but the issue is,
consider master page form and child page form.
consider this as masterpage.aspx ,default aspx ro home.aspx and sports.aspx.
i am binding treeview in master page. so when i run the prgram. home will sart as i mentioned home.aspx as start up page. till now everthing works good. when i redirect to sports.aspx page, sports.aspx page will show. but that time treeview is empty.
becuase though we redirect to any other child page. the command prompt will come back to master page and pages display on ther screen. right? this is normal thing.
so, if i redirect page to sporst.aspx page, it does all work of aspx page and come back to maseter page. that time again i am binding treeview.
let me tell in clear way.
in master page,
treeview binding // before redirect page. it forms treeview. so after redirect page. treeview is empty.
treeview binding (again)
so, i am binding two time ( working the same work twice). so, is there any other possiblities to bind one time treeview and i can retrun treeviw. wherever i need treeview is , i will make treeview.visible = true, like other .net control exists like label, textbox (visible true and false).