I'm finally biting the bullet and converting over from the old asp.net controls to asp.net for ajax, and one thing is vexing me.
In the old world, we took advantage of the fact that the title on a radwindow was rendered out verbatim to stick spans and the like into the Title on an as-needed basis from c# code for styling (ie, stylesheets will not work) and in a couple of cases, an onclick javascript function... something like:
In asp.net for ajax, though, it looks like the title is now being rendered after a run through Server.HtmlEncode.
Researching shows that maybe it's related to PITS entry 2541 and this thread : http://www.telerik.com/community/forums/aspnet-ajax/window/html-element-is-rendered-in-page-title.aspx
Am I looking at having to use set_title() in javascript to deal with this, or is there a property I can set on the Window/WindowManager declaration to make the window take the page's title verbatim, without running it through Server.HtmlEncode?
In the old world, we took advantage of the fact that the title on a radwindow was rendered out verbatim to stick spans and the like into the Title on an as-needed basis from c# code for styling (ie, stylesheets will not work) and in a couple of cases, an onclick javascript function... something like:
if (someCondition)
Title = "<
span
style
=
'color:red'
>" + blah + "</
span
>";
else if (someOtherCondition)
Title = "<
span
style
=
'color:green'
onclick
=
'doSomething();'
>" + blah + "</
span
>";
else
Title = blah;
In asp.net for ajax, though, it looks like the title is now being rendered after a run through Server.HtmlEncode.
Researching shows that maybe it's related to PITS entry 2541 and this thread : http://www.telerik.com/community/forums/aspnet-ajax/window/html-element-is-rendered-in-page-title.aspx
Am I looking at having to use set_title() in javascript to deal with this, or is there a property I can set on the Window/WindowManager declaration to make the window take the page's title verbatim, without running it through Server.HtmlEncode?