Style tags lost on POSTback

2 posts, 0 answers
  1. Jay O'Brien
    Jay O'Brien avatar
    39 posts
    Member since:
    Dec 2008

    Posted 02 Apr 2009 Link to this post

    I am using RadAjaxPanel, and inside it is a simple <style> tag with a few styles. Inside the RadAjaxPanel are HTML controls that uses these styles. It looks fine when the page first loads, but after a POSTback from one of the controls in the AJAX panel, the styles seem to be "lost".

    A couple of things ... the <style> tags are not in the <head> ... they are just in an AJAX panel inside the <body> tag on a page.

    Is this expected that any <style> tags will be dropped? Is there a way to make the browser still "see" these style tags after the AJAX POSTback?

  2. Dimo
    Dimo avatar
    8404 posts

    Posted 03 Apr 2009 Link to this post

    Hello Jay,

    As you know, putting <style> tags in the <body> is not correct.

    The reason for the problem is that Internet Explorer does not evaluate <style> elements (and <script> too, by the way) in the AJAX response. Please, place the styles somewhere else.

    All the best,
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Back to Top