Jan 15, 2010, 2:04 PM
Code behind setting Title property on portlet fails
Hey guys,
When i set the portlet title property from the code behind i get a JS error and the page doesn't render. but if i set the title in design mode it works great how can i programmatic ally set the title.
Note the issue only come-in when i'm setting a title (from code behind) that looks like this "Something : Part - A"
When i set the portlet title property from the code behind i get a JS error and the page doesn't render. but if i set the title in design mode it works great how can i programmatic ally set the title.
Note the issue only come-in when i'm setting a title (from code behind) that looks like this "Something : Part - A"
// Fails ON CLIENT
NewPortlet.Title = "Something : Part - A";
// WORKS.
NewPortlet.Title = "Something Part A";
<ext:Portlet ID="Portlet11" Title="Something : Part - A" runat="server" HideCollapseTool="true">
<Tools>
<ext:Tool Type="Search" Handler="" />
</Tools>
</ext:Portlet>
Any idea how to get around this?