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")?
精彩评论