ASP.NET does not support a lot of mouse and key events, try to add a script on the client side, and postback the form, something like <input type=text id="txt1" runat="server" onkeydown="_doPostBack('txt1','')" onkeyup="_doPostBack('txt1','')">
To nana_nana (娜娜):.NET中一个类的所有通过event关键字定义的事件(无论是public或protected),都只能在这个类本身的method里面出发(raise)。在类的外部(无论是外部函数还是子类),都不允许直接通过执行Delegate的方法来出发事件。具体说明您可以参考http://www.csdn.net/expert/topic/844/844822.xml Hogwarts - S(u)ddenly dis@ppeared... - 本贴子以“现状”提供且没有任何担保,同时也没有授予任何权利。具体事项可参见使用条款(http://support.microsoft.com/directory/worldwide/zh-cn/community/terms_chs.asp)。 为了为您创建更好的讨论环境,请参加我们的用户满意度调查(http://support.microsoft.com/directory/worldwide/zh-cn/community/survey.asp?key=(S,49854782))。
<input type=text id="txt1" runat="server" onkeydown="_doPostBack('txt1','')" onkeyup="_doPostBack('txt1','')">
Hogwarts - S(u)ddenly dis@ppeared...
-
本贴子以“现状”提供且没有任何担保,同时也没有授予任何权利。具体事项可参见使用条款(http://support.microsoft.com/directory/worldwide/zh-cn/community/terms_chs.asp)。
为了为您创建更好的讨论环境,请参加我们的用户满意度调查(http://support.microsoft.com/directory/worldwide/zh-cn/community/survey.asp?key=(S,49854782))。