开发者

ASP.Net HyperLink control enabled propery is not working in IE 8 compatibility mode?

We have following ASP.Net 2.0 HyperLink Control:

asp:HyperLi开发者_C百科nk ID="FolderLink" runat="server" CssClass="cursor" Enabled="false" ImageUrl="/_layouts/1033/images/selectlink.gif" ToolTip="Folder Links">

On server side, following script is attached:

FolderLink.Attributes.Add("onclick", "javascript:setURL('Control');");

Issue is that HyperLink Control is disbale in IE 8 but not in IE compatibility mode. Any help?


For one, it should be this, don't put javascript: in onclick

FolderLink.Attributes.Add("onclick", "setURL('Control');");

But its not clear to me what this setURL() function has to do with your question.

If you don't want your onclick to be called then why are you adding it in the first place? If you explain the problem better you'll get a better answer.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜