[英]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: 当我在asp:button上使用“ onmousedown”时,为什么Visual Studio在任务列表中显示此消息:
Could not find attribute 'onmousedown' of element button
找不到元素按钮的属性“ onmousedown”
Surely it does exist. 当然,它确实存在。 After all, it works!
毕竟,它有效! The same thing happens for "onmouseup"
“ 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 根据MSDN,这些不是asp:Button标记上的有效属性: http : //msdn.microsoft.com/zh-cn/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.
不确定,我想它是从WebControl或Control继承它们的。
Is there a good reason why you can't use Click or Command handlers (OnClick="MethodName" or OnCommand="MethodName")? 有充分的理由为什么您不能使用Click或Command处理程序(OnClick =“ MethodName”或OnCommand =“ MethodName”)?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.