0

一連の div タグを含む .aspx Web ページがあります。
私がやっていることの例として、そのうちの1つを投稿します。

<div id="homeownerquestion" runat="server">
Are you the property owner?
<p>
    <asp:RadioButtonList ID="RadioButtonHomeowner" runat="server" AutoPostBack="true" OnSelectedIndexChanged="rbHomeOwnerDecision">
        <asp:ListItem>Yes</asp:ListItem>
        <asp:ListItem>No</asp:ListItem>
    </asp:RadioButtonList>

コードビハインドページには、次のものがあります。

protected void Page_Load(object sender, EventArgs e)
{

    ClientScript.GetPostBackEventReference(this, string.Empty);
    if (!IsPostBack)
    {
        homeownerquestion.Visible = true;
        rejection.Visible = false;
        HazMap.Visible = false;
        WaitList.Visible = false;
        k2dlink.Visible = false;
        FloodPlain.Visible = false;
        floodinterest.Visible = false;
        PropertyAge.Visible = false;
        older1968.Visible = false;
        HomeType.Visible = false;
    }
    else
    {
        homeownerquestion.Visible = false;
        HazMap.Visible = false;
        FloodPlain.Visible = false;
        older1968.Visible = false;
        HomeType.Visible = false;

    }

}

protected void rbHomeOwnerDecision(object sender, EventArgs e)
{

    if (RadioButtonHomeowner.SelectedItem.Text == "No")
    {
        rejection.Visible = true;
        k2dlink.Visible = true;
    }
    if (RadioButtonHomeowner.SelectedItem.Text == "Yes")
    {
        HazMap.Visible = true;
    }

}

これらはすべて、ラジオ ボタンの選択に基づいて表示および非表示になるさまざまな div です。

このコードは、Explorer 10 を除いて、私がテストしたすべてのブラウザーで動作します。IE10 を強制的に IE 8 に戻すにはどうすればよいですか?9 では動作しますが、表示に問題があるためです。他の提案も歓迎します。

4

1 に答える 1

0

In most cases (I could say in all cases, but I haven't been in web development for that long), IE10 will work if IE9 works and so does either Chrome or Firefox. If it does not, for whatever reason, your users can use Browser Mode feature of IE 10:

enter image description here

This is done from Developer Tools, which you can access using F12.

于 2013-04-30T20:30:08.050 に答える