写了一个小的ajax测试程序,在ie10上不工作在360和360极速浏览器工作,谁帮忙解答下是什么原因?
在本机上测试都工作,放到网上Ie10不工作,360和极速工作ajax.aspx页面:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ajax.aspx.cs" Inherits="ajax"%>
<html xmlns="http://www.
<head id="Head1" runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<br />
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Label ID="LTest" runat="server" Text="Label"></asp:Label>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="DropDownList1"
EventName="SelectedIndexChanged" />
</Triggers>
</asp:UpdatePanel>
<asp:DropDownList ID="DropDownList1" runat="server"
onselectedindexchanged="DropDownList1_SelectedIndexChanged" AutoPostBack="true">
<asp:ListItem Value="北京"></asp:ListItem>
<asp:ListItem Value="天津"></asp:ListItem>
<asp:ListItem Value="上海"></asp:ListItem>
<asp:ListItem Value="南京"></asp:ListItem>
</asp:DropDownList>
<br />
</form></body>
</html>
ajax.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class ajax : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void BtnTest_Click(object sender, EventArgs e)
{
//LTest.Text = DateTime.Now.ToString();
}
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
string selectText = DropDownList1.SelectedItem.ToString();
this.LTest.Text=selectText;
}
}
[ 本帖最后由 苏子愀然 于 2013-3-31 16:34 编辑 ]