Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/322.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.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# 将鼠标指针从手动更改为I_C#_Asp.net - Fatal编程技术网

C# 将鼠标指针从手动更改为I

C# 将鼠标指针从手动更改为I,c#,asp.net,C#,Asp.net,我使用的是具有读写访问权限的网格视图 用户可以使用密码登录,并在其密码上读取或写入网格视图 在网格视图中,我有asp:按钮,我使用网格视图的命令事件禁用它 protected void gvMemSpb_RowCreated(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { int iRow = in

我使用的是具有读写访问权限的网格视图 用户可以使用密码登录,并在其密码上读取或写入网格视图

在网格视图中,我有asp:按钮,我使用网格视图的命令事件禁用它

protected void gvMemSpb_RowCreated(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            int iRow = int.Parse(Convert.ToString(e.Row.RowIndex));
            if (iRow > -1)
            {
                if (Session["Me_Status"].ToString() == "" || Session["Me_Status"].ToString() == "R")
                {

                    e.Row.Cells[3].Enabled = false;
                    e.Row.Cells[4].Enabled = false;
                    e.Row.Cells[5].Enabled = false;
                    lblRWAccess.Text = "This is (read only) Access page";
                }

            }

        }
这就是我在网格视图上禁用asp:按钮的方式,它们被禁用, 但问题是,当鼠标移到这些按钮上时,它仍然会显示手形图标, 我不想在谷歌上搜索时在鼠标上方显示手指针,但找不到可能的解决方案如何实用地隐藏手指针

 {
                    ?//what code i add hear to hide hand pointer 
                    ?
                     ?
                    e.Row.Cells[3].Enabled = false;
                    e.Row.Cells[4].Enabled = false;
                    e.Row.Cells[5].Enabled = false;
                    lblRWAccess.Text = "This is (read only) Access page";
                }
提前谢谢
Vaibhav Deshpande(MCA)

禁用按钮时,我会使用CSS修改按钮的光标,禁用后,您可以添加一个类,将光标从默认设置更改为所需设置,启用后,您可以删除该类。CSS就像

nohand { cursor: text; } /* this should change the cursor to the I-bar when added to an html element */

非常感谢我使用了如下代码{e.Row.Cells[3]。Enabled=false;e.Row.Cells[3]。CssClass=“nohand”}并声明css nohand{cursor:text;}在顶部,我很高兴它现在运行良好,谢谢,这是一吨