First this is an issue only in IE (tested bad: IE 6, IE 8, good: FF 3.5.3).
I have js which adds a tab when the user is on one tab that has questions like:
Add Tab HM? [] yes [] no
using a radioButtonList and OnClick="parent.HMRadioChange()"
(Yeah all the tabs each have an iframe that loads the content like what I described for this tab. I know how bad iframes are, so I don't need that lecture, I don't have the option to change that).
Unfortunately there is also a postback: onselectedindexchanged="HMRadio_SelectedIndexChanged" which is why the load method is called after the user selects Yes to add the tab.
Anyway it was working when the tab was names didn't have any underline, and now it throws an error. Since adding the <u> to the tab name is what is causing the exception, I will leave out the code here for adding the tab, examples can be found elsewhere on this site.
Here is the js that is causing the problem:
Here is the exception:
A Runtime Error has occurred.
Do you wish to Debug?
Line 6: Error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
Yes No
Here is what the tabs look like in the parent aspx:
Is anyone familiar with Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler); and could venture a guess why it works with a tab named "HM" but not "<u>H</u>M"?
I have js which adds a tab when the user is on one tab that has questions like:
Add Tab HM? [] yes [] no
using a radioButtonList and OnClick="parent.HMRadioChange()"
(Yeah all the tabs each have an iframe that loads the content like what I described for this tab. I know how bad iframes are, so I don't need that lecture, I don't have the option to change that).
Unfortunately there is also a postback: onselectedindexchanged="HMRadio_SelectedIndexChanged" which is why the load method is called after the user selects Yes to add the tab.
Anyway it was working when the tab was names didn't have any underline, and now it throws an error. Since adding the <u> to the tab name is what is causing the exception, I will leave out the code here for adding the tab, examples can be found elsewhere on this site.
Here is the js that is causing the problem:
function EndRequestHandler(sender, args) { |
parent.refreshHeader(); |
} |
function load() { |
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler); |
} |
Here is the exception:
A Runtime Error has occurred.
Do you wish to Debug?
Line 6: Error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
Yes No
Here is what the tabs look like in the parent aspx:
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1" |
OnClientTabSelected="OnClientTabSelected" OnClientTabSelecting="OnClientTabSelecting" |
UnSelectChildren="True" ClickSelectedTab="True" Skin="Vista" SelectedIndex="0" |
CausesValidation="false"> |
<Tabs> |
<telerik:RadTab runat="server" Text="<u>Q</u>uestions" PageViewID="TABQUESTION" ToolTip="Questions" /> |
<telerik:RadTab runat="server" Text="<u>H</u>M" PageViewID="TABHM" ToolTip="HM Information" /> |
</Tabs> |
</telerik:RadTabStrip> |
<telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" Height="3500px" |
Width="790px"> |
<!--QUESTIONS TAB --> |
<telerik:RadPageView ID="TABQUESTION" Height="100%" runat="server" ToolTip="Questions"> |
<iframe id="QUESTIONSIFRAME" name="QUESTIONSIFRAME" width="100%" height="100%" |
frameborder="0" runat="server"></iframe> |
</telerik:RadPageView> |
<!--HM TAB --> |
<telerik:RadPageView ID="TABHM" Height="100%" runat="server" ToolTip="HM Information"> |
<iframe id="HMIFRAME" name="HMIFRAME" width="100%" height="100%" frameborder="0" title="HM Information"> |
</iframe> |
</telerik:RadPageView> |
</telerik:RadMultiPage> |
Is anyone familiar with Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler); and could venture a guess why it works with a tab named "HM" but not "<u>H</u>M"?