This is a migrated thread and some comments may be shown as answers.

Inserting tab with <u>letter</u> interacting with Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);

1 Answer 61 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Gary B.
Top achievements
Rank 1
Gary B. asked on 08 Oct 2009, 03:42 PM
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:
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"?

1 Answer, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 13 Oct 2009, 01:50 PM
Hi Gary,

Could you please open a support ticket and send a simple running project (incl. CSS, images, DB backup and so on) demonstrating the problems. In that way we can reproduce and pinpoint the problems you're facing on our side, understand the logic of your application and provide a solution.

Thanks,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TabStrip
Asked by
Gary B.
Top achievements
Rank 1
Answers by
Paul
Telerik team
Share this question
or