Binding tree view two time (same thing works twice) how to solve this problem. kindly help me out...

Posted by Christxavier under ASP.NET on 9/16/2013 | Points: 10 | Views : 1729 | Status : [Member] | Replies : 0
hi i have developed treeview which shows categories and it's subcategories using

everything works fine.

but the issue is,

consider master page form and child page form.

for example,

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,

if (xxxxx)
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).


(No response found.)

Login to post response