M
ma
Hello,
I am new in ASP.NET. I read several books and know the concept but since
I am a C++ programmer I am lost in programming methodology in ASP.NET. Here
is my problem:
I have a page which consists of two sections. A tree view on left and a
detail view on right. The tree view would get its data from a database. For
simplicity I wrote a C# class to fill the tree with some dummy data. When
user click on any node, based on the node depth and also node content and
user name, the detail section should display some information. To do this I
created a master page. Since tree view would shows on all pages I put it on
master page. I fill the tree on master page load event.
When the user clicks on any node, I redirect the user to a new page based on
the depth of node.
Everything is working well till this point but the problem started from here
and they are:
1-Every time that user redirected to a new page, tree is populated. This
process is slow. The content of tree is not changed in any session but
master page load event is called for all child pages of this master page and
hence the tree is filled un necessarily.
2- Since the tree is populated when a new page is shown, it loses its state.
3- Since tree looses its state when user is redirected to a new page, I can
not detect what I need to show in the new page.
Now my questions:
1- Where is the best place to fill the tree view?
2- Is there any sample web program similar to what I want to create that I
can download and look at?
3- Is there any way that only detail section be rendered during a post back
and not the tree view itself? I read about AJAX and Atlas. Are they any
good? Can I use them with ASP.NET? Where can I read more about them and how
they are compared with each other?
4- Any other suggestion.
Regards
I am new in ASP.NET. I read several books and know the concept but since
I am a C++ programmer I am lost in programming methodology in ASP.NET. Here
is my problem:
I have a page which consists of two sections. A tree view on left and a
detail view on right. The tree view would get its data from a database. For
simplicity I wrote a C# class to fill the tree with some dummy data. When
user click on any node, based on the node depth and also node content and
user name, the detail section should display some information. To do this I
created a master page. Since tree view would shows on all pages I put it on
master page. I fill the tree on master page load event.
When the user clicks on any node, I redirect the user to a new page based on
the depth of node.
Everything is working well till this point but the problem started from here
and they are:
1-Every time that user redirected to a new page, tree is populated. This
process is slow. The content of tree is not changed in any session but
master page load event is called for all child pages of this master page and
hence the tree is filled un necessarily.
2- Since the tree is populated when a new page is shown, it loses its state.
3- Since tree looses its state when user is redirected to a new page, I can
not detect what I need to show in the new page.
Now my questions:
1- Where is the best place to fill the tree view?
2- Is there any sample web program similar to what I want to create that I
can download and look at?
3- Is there any way that only detail section be rendered during a post back
and not the tree view itself? I read about AJAX and Atlas. Are they any
good? Can I use them with ASP.NET? Where can I read more about them and how
they are compared with each other?
4- Any other suggestion.
Regards