asp net 4-在ie6中不触发自动回发 [英] asp net 4 - autopostback doesnt fire in ie6

查看:124
本文介绍了asp net 4-在ie6中不触发自动回发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,我真的很困惑,希望这很简单.我有一个窗体,该窗体依赖单选按钮列表的自动回传来显示或隐藏某些内容.刚开始时,这确实很复杂,并且可以正常工作,直到我在IE6中进行了测试.下面的代码是我获得的最基本的代码,我背后的所有代码都只是在单击时将标签更新为单选按钮的选定值.这在IE7和8中有效,但在IE6中不起作用,这有什么作用?

OK, Im really stumped and hoping this is something simple. I have a form that relies on an autopostback of a radiobuttonlist to show or hide something. This was really elaborate at first and working fine, until I tested in IE6. The code below is as basic as I can get, all my code behind does is update the label to the radiobutton's selected value on click. This works in IE7 and 8, but not in IE6, what gives?

<%@ Page Title="" Language="vb" AutoEventWireup="false"  CodeBehind="testpostback.aspx.vb" Inherits="Checkout.testpostback" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
<form id="form1" runat="server">
<asp:RadioButtonList ID="radio1" runat="server" AutoPostBack="true">
    <asp:ListItem Text="Check1" Value="Check1" />
    <asp:ListItem Text="Check2" Value="Check2" />
</asp:RadioButtonList>
<asp:Label ID="label1" runat="server" Text="none" />
</form>
</body>
</html>

推荐答案

看看您的网页中生成的javascript,它可能使用了IE6无法执行的javascript新功能.

Take a look at the generated javascript in your web page and probably it uses new features of javascript that couldn't be executed by IE6.

您有机会调试javascript并查看会发生什么情况.

Chances are you can debug the javascript and see what happens.

考虑到XP Sp3中的IE6与早期XP中的IE6不同,并且问题较少.

Consider that IE6 in XP Sp3 is not the same as IE6 in earlier XPs and it has less problems.

这篇关于asp net 4-在ie6中不触发自动回发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆