public void BindTree() { BaseHandler objsubhandler = new BaseHandler(); var tree = objsubhandler.GetExtendedSubjectsAsTree(Language); JavaScriptSerializer TheSerializer = new JavaScriptSerializer(); hdnTreeData.Value = TheSerializer.Serialize(tree); }