0

RadioButtonList で selectedindexchanged 中に Hyperlink の NavigateURL で渡された ID を更新するだけです。

Mozilla では、ハイパーリンクで ID が更新されるまでに 3.26 秒かかります。他のブラウザも時間がかかりすぎます。

どうすればこれを解決できますか?

私は多くの記事を読み、次の対策を講じました。

web.config でデバッグを false に設定します

更新モードで条件を使用する

更新パネルで更新する必要があるコントロールのみを使用してください。

それでも、3.26秒かかります...

Protected Sub chlTypes_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles chlTypes.SelectedIndexChanged
    If (chlTypes.SelectedItem.Value.ToString() <> "") And (chlTypes.SelectedItem.Value.ToString() <> "0") Then
        HypView.NavigateUrl = "~/Content.aspx?ID=" + chlTypes.SelectedItem.Value.ToString()
    End If 
End Sub

 <table id="tbl1">
                <tr>
                    <td>
                        <asp:UpdatePanel ID="UP1" runat="server"  UpdateMode="Conditional">
                            <ContentTemplate>
                                <asp:RadioButtonList ID="chlTypes" runat="server" AutoPostBack="true">
                                </asp:RadioButtonList>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:UpdatePanel ID="UP2"  runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                                <div class="caregiver_view_button">
                                    <asp:HyperLink ID="HypView" class="caregiver_view_button"   
                                     runat="server"><img src="/view_button.png" /></asp:HyperLink>

                                </div>
                            </ContentTemplate>
                            <Triggers>
                                <asp:AsyncPostBackTrigger ControlID="chlTypes" />
                            </Triggers>
                        </asp:UpdatePanel> 
                    </td>
                </tr>
            </table>
4

0 に答える 0