Master Page Refresh Problem
-
Hi, I'd been searching the net for this but none seems to work. I am using a master page (to replace iframe actually) and happily it works as I wanted it. Now the problem is, there is a treeview in the the master page which suppose to refresh the content page but it refreshes the whole page itself causing the treeview to revert back to its original state. Is there any command to tell the Master Page not to refresh itself? Thanks in advance. J Liang
-
Hi, I'd been searching the net for this but none seems to work. I am using a master page (to replace iframe actually) and happily it works as I wanted it. Now the problem is, there is a treeview in the the master page which suppose to refresh the content page but it refreshes the whole page itself causing the treeview to revert back to its original state. Is there any command to tell the Master Page not to refresh itself? Thanks in advance. J Liang
J Liang wrote:
Is there any command to tell the Master Page not to refresh itself?
Upto my knowledge NO. Browsers won't treat as master and content page. When ASP.NET processes the page, it will combine master and content page and sends HTML code to browser. This will be treated as single page only. So when refresh happens, it will refresh entire page. Is it possible for you to implement with some AJAX concepts ?
-
Hi, I'd been searching the net for this but none seems to work. I am using a master page (to replace iframe actually) and happily it works as I wanted it. Now the problem is, there is a treeview in the the master page which suppose to refresh the content page but it refreshes the whole page itself causing the treeview to revert back to its original state. Is there any command to tell the Master Page not to refresh itself? Thanks in advance. J Liang
You can try isolating the Tree in an IFRAME. Would that solve the issue?
Vasudevan Deepak Kumar Personal Homepage Tech Gossips
-
J Liang wrote:
Is there any command to tell the Master Page not to refresh itself?
Upto my knowledge NO. Browsers won't treat as master and content page. When ASP.NET processes the page, it will combine master and content page and sends HTML code to browser. This will be treated as single page only. So when refresh happens, it will refresh entire page. Is it possible for you to implement with some AJAX concepts ?
I have suggested him an IFRAME isolation trick: http://www.codeproject.com/script/comments/forums.asp?msg=2170845&forumid=12076#xx2170845xx[^]
Vasudevan Deepak Kumar Personal Homepage Tech Gossips
-
I have suggested him an IFRAME isolation trick: http://www.codeproject.com/script/comments/forums.asp?msg=2170845&forumid=12076#xx2170845xx[^]
Vasudevan Deepak Kumar Personal Homepage Tech Gossips
Vasudevan Deepak Kumar wrote:
have suggested him an IFRAME isolation trick:
Yes, that will be a good solution. It will look like MSDN, is it ?
-
Hi, I'd been searching the net for this but none seems to work. I am using a master page (to replace iframe actually) and happily it works as I wanted it. Now the problem is, there is a treeview in the the master page which suppose to refresh the content page but it refreshes the whole page itself causing the treeview to revert back to its original state. Is there any command to tell the Master Page not to refresh itself? Thanks in advance. J Liang
... or you can change your code that the state of the TreeView is maintained (ViewState). I'd need more information about what you do to provide a solution, though.
-^-^-^-^-^- no risk no funk
-
I have suggested him an IFRAME isolation trick: http://www.codeproject.com/script/comments/forums.asp?msg=2170845&forumid=12076#xx2170845xx[^]
Vasudevan Deepak Kumar Personal Homepage Tech Gossips
Hi, But if I would use iFrame, doesn't that would defeat my purpose of using the Master Page of ASP.NET? My previous projects I was using iFrame but it gives me the problem again when refreshing, it will return the page back to the main page instead of refreshing the current page since the URL column on the browser show the same address even when I navigate around the page. J Liang
-
J Liang wrote:
Is there any command to tell the Master Page not to refresh itself?
Upto my knowledge NO. Browsers won't treat as master and content page. When ASP.NET processes the page, it will combine master and content page and sends HTML code to browser. This will be treated as single page only. So when refresh happens, it will refresh entire page. Is it possible for you to implement with some AJAX concepts ?
Hi, I'd tried using the Update Panel which I thought it might just work but it doesn't. This is because the Tree View will direct the user to that particular page which also has the master page and the tree view in it, therefore it still refreshes the whole page. Really hope there is some work around on this as my client is not going to like their tree view to collapse every time they go to a new page ;P J Liang
-
I have suggested him an IFRAME isolation trick: http://www.codeproject.com/script/comments/forums.asp?msg=2170845&forumid=12076#xx2170845xx[^]
Vasudevan Deepak Kumar Personal Homepage Tech Gossips
Hi, I think I just got what you mean. You mean in the Master Page itself, create an iFrame, one side with the Tree View and the other side with the PlaceHolder. It sounds like a good idea, I shall try it and get back to you with the result ;) Thanks again. J Liang