Beste practice using MasterPage and AJAX

3 posts, 0 answers
  1. Stephan
    Stephan avatar
    71 posts
    Member since:
    Jul 2007

    Posted 19 Sep 2008 Link to this post

    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.


  2. Atanas Korchev
    Atanas Korchev avatar
    8462 posts

    Posted 22 Sep 2008 Link to this post

    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.

    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Stephan
    Stephan avatar
    71 posts
    Member since:
    Jul 2007

    Posted 22 Sep 2008 Link to this post

    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.

Back to Top