This is a migrated thread and some comments may be shown as answers.

Beste practice using MasterPage and AJAX

2 Answers 58 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Stephan
Top achievements
Rank 1
Stephan asked on 19 Sep 2008, 08:23 AM
Hi, in our project we use a MasterPage, several content pages and a view WebUserControls for the most commen information. Some parts of the website are AJAX-fied. For example choosing an other client. So not the whole page refreshes and give a richer user interface.

In the MasterPage we also have a control containing a RadMenu. Navigation is done using the NavigationURL. This causes a post-back which cannot be AJAX-fied because we navigate to a new Page (URL)

I have two questions. To give the application a even more richer UI, replace all the page-content and logic in WebUserControls so it will be possible only the refesh the needed content and not do a full postback. The can be done for most pages, but is this an adviceble approch or will it suffer from performance issues? And what would be suggested?

The last question is (if we follow the above approach using WUC instead of the current pages), how can the RadMenu be used to load the WUC instead of navigate to an other page using the NavigationURL? (What I think at this moment what should be done is catch the onClickEvent of the menu item and then load the WUC dynamically in the code-behind). Also is this good practice or not advicable (due to performance problems)?

Any suggestions are welcome.

TIA


2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 22 Sep 2008, 01:27 PM
Hi Stephan,

Technically it is possible to use the ItemClick event of RadMenu and load the user controls from code. You should then implement the whole business logic inside the user controls since you would have one and only one ASPX page. Also postbacks cannot be bookmarked or indexed by a search engine. Anyway if this is not an issue for you it is doable and you would achieve desktop-like experience due the lack of postbacks and navigation.

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Stephan
Top achievements
Rank 1
answered on 22 Sep 2008, 01:35 PM
Hi Albert,

this is a webapplication and there is absolutely no need to store links or indexing for a search engine.

I do understand there will be only one page.

Thanks for the reply.

Regards
Tags
Ajax
Asked by
Stephan
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Stephan
Top achievements
Rank 1
Share this question
or