C#ASP。 Gridview删除标题中的第一列 [英] C# ASP. Gridview dropping the first column in the header

查看:64
本文介绍了C#ASP。 Gridview删除标题中的第一列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用C#编写ASP页面。



当我在一个角色(处理器)下登录时(角色被编程为控制用户可以访问的页面),第一列(检查虽然记录中的所有复选框都出现,但gridview中缺少所有复选框。当我以任何其他角色登录时,包括处理器...数据输入下面的那些...复选框显示。



通过代码,我找不到对页面上角色的任何引用,所以我无法确定为什么第一列拒绝以处理器登录时显示。



我认为这可能与谎言有关:

I am working on an ASP page in C#.

When I log in under one role ("Processor") (roles are programmed to control which pages the user has access to), the first column (a "check all" checkbox) is missing from the gridview, although all of the checkboxes in the records appear. When I log in as any other roles, including those below "Processor"..."Data Entry" for example...the checkbox shows up.

Going through the code, I cannot find any reference to the role on the page, so I cannot determine why the first column refuses to show when logged in as "Processor".

I thought it might have to do with the lie:

$(document).ready(function () {
    ShowProgress();
});



这是在构建gridview的命令之前的代码中。



是吗gridview常见的是删除列标题吗?



我尝试过:



行之前有一个超时功能:

$(文件).ready(function(){

ShowProgress();

});



我将超时延长了2秒,但没有做任何事。


This is in the code before the command to build the gridview.

Is it common for gridview to drop column headers?

What I have tried:

There is a timeout function just prior to the line:
$(document).ready(function () {
ShowProgress();
});

I extended the timeout by 2 seconds but it did nothing.

推荐答案

(document).ready(function(){
ShowProgress();
});
(document).ready(function () { ShowProgress(); });



这是在构建gridview的命令之前的代码中。



是吗gridview常见的是删除列标题吗?



我尝试过:



在行之前有一个超时函数:


This is in the code before the command to build the gridview.

Is it common for gridview to drop column headers?

What I have tried:

There is a timeout function just prior to the line:


(document).ready(function(){

ShowProgress();

});



我将超时延长了2秒,但没有做任何事。
(document).ready(function () {
ShowProgress();
});

I extended the timeout by 2 seconds but it did nothing.


这篇关于C#ASP。 Gridview删除标题中的第一列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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