所以我现在正在研究跨浏览器代码。我有复选框,在调用某些函数后禁用,在 IE 中但在 Firefox 和 Chrome 中没有。
我查看了代码,发现当在 Firefox 中呈现时,禁用的标签被放置在 IE 上,td这就是它在 IE 中而不是其他浏览器中工作的原因。
asp.net 中有没有办法禁用单元格或复选框并让它在 Firefox、Chrome 等中正确呈现?
这是我的功能,其中启用 = false
protected void FilterCheckBox(object sender, ASPxGridViewTableCommandCellEventArgs e)
{
    if (ExecContractGridView != null)
    {
        try
        {
            if (ExecContractGridView.GetRowValues(e.VisibleIndex, "UnionExecutedBy") != null)
            {
                if (!string.IsNullOrEmpty(ExecContractGridView.GetRowValues(e.VisibleIndex, "UnionExecutedBy").ToString()))
                {
                    e.Cell.Enabled = false;
                }
            }
        }
        catch (Exception ex)
        {
            ApplicationLog.Exception(this, ex);
        }
    }
}