asp.net – IE10中的LinkButtons不执行回发
|
我正在尝试添加一个简单的LinkButton到ASP.NET 4页面,但它不是在IE10调用回发.代码如下所示. HTML: <form id="form1" runat="server">
<div>
<asp:LinkButton ID="LinkButton1" runat="server"
OnClick="LinkButton1_Click">LinkButton</asp:LinkButton>
<br />
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</div>
</form>
C#: protected void Page_Load(object sender,EventArgs e) { }
protected void LinkButton1_Click(object sender,EventArgs e)
{
Label1.Text = DateTime.Now.ToString();
}
你可以看到,这只是一个简单的页面.但是,升级到Win8和IE10后,我无法找到LinkButton调用该方法.这对Firefox很好用. 任何想法我需要做什么? 解决方法这是服务器修补/更新问题. ASP.NET尚未发布正确的JavaScript以供浏览器运行.它不知道IE版本比IE9更新.见Scott Hanselman的帖子: ASP.NET fails to detect IE10 causing _doPostBack is undefined JavaScript error or maintain FF5 scrollbar position Scott在2011年的帖子中指出,修复应该通过Windows Update分发.确保您的服务器是Windows Update中.NET Framework服务更新的最新版本.如果不是,you can download the patch或read more details on the Microsoft KB. 该修复将更新这些.browser文件,允许ASP.NET发出正确的标记和JavaScript.
这将包含这样的项目: <!-- Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0) -->
<browser id="IE10Plus" parentID="IE6Plus">
<identification>
<capability name="majorversion" match="d{2,}" />
</identification>
<capabilities>
<capability name="jscriptversion" value="6.0" />
</capabilities>
</browser> (编辑:日照站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- asp.net-mvc-4 – AngularJs,DropZone.Js,MVC4 – 拖放,预览
- asp.net-mvc – Url.Action如何从模型中添加参数值
- asp.net-mvc – 你如何指定在列表框中显示多少项目(高度)
- asp.net-mvc – 使ASP.NET绑定指定media =屏幕的CSS bundle
- iCalendar格式中关于RRule的解析和生成
- asp.net-mvc-3 – 在MVC3中使用Html.LabelFor的表单标签中的
- ASP.NET MVC4 Razor模板简易分页效果
- asp.net-mvc – MVC 4 HttpNotFound()和404错误
- asp.net – 请求在IIS工作进程中存在于RequestAcquireState
- asp.net-mvc – 如何在asp.net中使用mvc构建购物车?
- asp.net-mvc – ASP.NET MVC的Content / Themes
- asp.net-mvc – ASP.NET MVC模型/ ViewModel验证
- 在ASP.NET中拒绝用户时,’CustomIdentity’上的S
- asp.net – 如何在页面加载时以“添加新”模式进
- ASP.NET:WebResource.axd调用404错误:如何知道
- 为熟悉ASP.NET Web表单开发的人建议MVC3的周末学
- asp.net-mvc – ASP.Net MVC中的自我AJAX更新部分
- ASP.NET Core 1.0 ConfigurationBuilder().AddJs
- asp.net – Orchard CMS和Sitefinity CMS
- asp.net – 请求在IIS工作进程中存在于RequestAc
