Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
am using treeview on load even am binding treeview
in that
C#
protected void HeadCreationTV_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        GetTreeViewBind();

    }
}



but after saving some values in save button click i have to reload tree once again.
i got problem because i gave !ispostBack ,if am not giving !isPostBack treeview is binging every time ,drobdown selected index change etc.....

is there any solution
Posted

1 solution

If you need to reload the tree after the button click then call GetTreViewBind in the button click handler.

You may also want to familiarize yourself with this ASP.NET Page Life Cycle Overview[^]
 
Share this answer
 
Comments
karthikkushala 9-Dec-10 2:52am    
hey am even i tried that but data set getting updated value but tree view is not loading
karthikkushala 9-Dec-10 2:55am    
int i = BLAccountHeadCreation.SaveAccountsDetails(ref objdc);
if (i > 0)
{
GetTreeViewBind();
}
after save button click and after no of rows effected retuned an binging GetTreeViewBind() but its not working
[no name] 9-Dec-10 8:14am    
What is in the GetTreeViewBind method? Do you have a DataBind call somewhere?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900