Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Gridview行命令在IE中不触发_C#_Asp.net_Internet Explorer_Gridview - Fatal编程技术网

C# Gridview行命令在IE中不触发

C# Gridview行命令在IE中不触发,c#,asp.net,internet-explorer,gridview,C#,Asp.net,Internet Explorer,Gridview,我看到过许多关于gridview行命令未触发的帖子,但没有看到任何依赖于浏览器的帖子 Gridview行命令在IE 10中不触发。同一个页面在Chrome和Firefox中都能完美运行。在IE中,即使在回发期间也不会调用页面加载。我正在调试模式下使用visual studio 2012。我已清除缓存,重新启动VS,甚至重新启动 aspx代码为: <asp:gridview id="gvInstances" runat="server" AutoGenerateColumns="Fals

我看到过许多关于gridview行命令未触发的帖子,但没有看到任何依赖于浏览器的帖子

Gridview行命令在IE 10中不触发。同一个页面在Chrome和Firefox中都能完美运行。在IE中,即使在回发期间也不会调用页面加载。我正在调试模式下使用visual studio 2012。我已清除缓存,重新启动VS,甚至重新启动

aspx代码为:

  <asp:gridview id="gvInstances" runat="server" AutoGenerateColumns="False"
    ShowHeader="False" onrowcommand="gvInstances_RowCommand" BackColor="white" BorderColor="#cccccc" BorderStyle="solid" BorderWidth="1px" CellPadding="3" >

  <Columns>
    <asp:ButtonField Text="Select" ItemStyle-BorderStyle="Solid" ItemStyle-BorderColor="#cccccc" ItemStyle-BorderWidth="1px" ButtonType="Button" CommandName="Select" >
      <ControlStyle CssClass="grdvwButton" />
    </asp:ButtonField>
    <asp:BoundField DataField="name" /> 
  </Columns>
  </asp:gridview>

我觉得你的代码很好


是否有必要使用IE10来运行和调试您的系统?否则,您可能会考虑使用IE 9或以下,或者使用不同的浏览器来运行UR系统,因为当我在ASP.NET项目

中使用IE 10时,我经历了多个代码和ASP控制问题。我考了IE10。创建新的aspx页面(不带母版页)。然后将上面的代码放在新页面中并调试它。那么,为什么它不再在IE中工作呢?几天前它还可以用。IE中是否存在禁止此操作的设置?在到达此页面之前,我有一个登录页面,可以正确发回。谢谢。许多用户使用IE10,我们也必须在该浏览器中进行测试。
public partial class SelectInstance : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            gvInstances.DataSource = SessionConfig.Instances;
            gvInstances.DataBind();

        }
     }
     protected void gvInstances_RowCommand(object sender, GridViewCommandEventArgs e)
     {
         if (e.CommandName == "Select")
         {

         }
     }