为什么启用是错误的链接按钮不能在Chrome和mozila中工作? [英] Why enabled is false for link button not work in Chrome and mozila ?
问题描述
嗨
我在chrome和Mozilla中的链接按钮启用为false时出现问题,如果我运行网站并将光标移动到链接按钮它不显示手形符号但我可以单击该链接,但在IE 8中相同我无法点击链接按钮。
为什么chrome和Mozilla无法正常工作?
和我的代码下面我写在服务器端
lnkAddUser.Enabled = False
lnkImpADUser.Enabled = 错误
以下是代码隐藏
< pre lang =xml> < asp:LinkButton ID = lnkAddUser runat = 服务器跨度> Font-Bold = True 字体大小 = 15px 字体下划线 = 错误 ForeColor = 黑色 OnClientClick = 返回AddUser_ClientClick() > 添加用户< / asp:LinkButton >
< asp:LinkButton ID = lnkImpADUser runat = server Font-Bold = True 字体 - 大小 = 15px 字体下划线 = 错误 ForeColor = 黑色 OnClientClick = 返回AddUser_ClientClick() > 添加用户< / asp:LinkButton >
i将使用OnClientClick =返回AddUser_ClientClick()
请回复asap
请重播任何人
问候
Aravindb 我很抱歉,如果IE 8允许您点击禁用(启用=假 - >已禁用)按钮,问题是IE 8。
我没有IE 8,但无论如何,根据定义你不应该点击禁用的按钮...
Hi
I have problem in enabled as false for link button in chrome and Mozilla,if i run website and move cursor to link button it not show hand symbol but i can click that link,but same in IE 8 i cant click link button.
Why in chrome and Mozilla not work correctly ?
and my code below and i write in server side
lnkAddUser.Enabled = False
lnkImpADUser.Enabled = False
below is codebehind
<asp:LinkButton ID="lnkAddUser" runat="server" Font-Bold="True" Font-Size="15px" Font-Underline="False" ForeColor="Black" OnClientClick="return AddUser_ClientClick()">Add User</asp:LinkButton>
<asp:LinkButton ID="lnkImpADUser" runat="server" Font-Bold="True" Font-Size="15px" Font-Underline="False" ForeColor="Black" OnClientClick="return AddUser_ClientClick()">Add User</asp:LinkButton>
i will use OnClientClick="return AddUser_ClientClick()
Pls reply asap
pls replay anybody
Regards
Aravindb
I'm sorry to say that by if IE 8 lets you click a disabled (Enabled = false -> Disabled) button that the problem is with IE 8.
I have no IE 8 but in any case, by definition you should not be able to click a button that disabled...
这篇关于为什么启用是错误的链接按钮不能在Chrome和mozila中工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!