如何在asp.net中禁用链接按钮? [英] How to disable link button in asp.net?
问题描述
在我的应用程序中,我使用了五个图像按钮,因为某些按钮有时会被禁用。但我的问题是当按钮被禁用时,如果我将光标移动到该按钮,它将显示手形符号。在这里,如果我将光标指向该按钮,我不想查看手形符号。
那么我该如何解决这个问题呢?
先谢谢
In my application I'm using five Image buttons, in that some buttons are some times disabled. But my question is when the button is disabled if I move my cursor to that button it will show hand symbol. Here I don't want to view hand symbol if I point my cursor to that button.
So How can I fix this problem please?
Thanks in Advance
推荐答案
如果从后面的代码中禁用它,请使用以下代码< br $>
use the below code if you disabling it from code behind
btnSearch.Style.Add ("cursor", "default");
<style type="text/css">
.cssClass
{
cursor:default;
}
</style>
< asp:linkbutton id =lnkSubmitrunat =servertext =Displayenabled =falsecssclass =cssClassxmlns:asp =#unknown>
<asp:linkbutton id="lnkSubmit" runat="server" text="Display" enabled="false" cssclass="cssClass" xmlns:asp="#unknown">
这篇关于如何在asp.net中禁用链接按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!