开发者

Could not find attribute 'onmousedown' VB.net

Why does Visual studio give this message in the task list when I use "onmousedown" on an asp:button:

Could not find attribu开发者_如何学编程te 'onmousedown' of element button

Surely it does exist. After all, it works! The same thing happens for "onmouseup"

Is there a way to suppress these messages?


According to MSDN those aren't valid attributes on an asp:Button tag: http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.button.aspx#DeclarativeSyntax

So how does it work? Not sure, I guess it is inheriting them from WebControl or Control.

Is there a good reason why you can't use Click or Command handlers (OnClick="MethodName" or OnCommand="MethodName")?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜