请问linkbutton和button有什么区别?oncommand事件和onclick又有什么不同???

解决方案 »

  1.   

    linkbutton 被解释成html后是<a href... 是个连接
    button 是<input type=submit 是个按钮
    onclick 是当control被单击时激发
    oncommand 是引发 Button 控件的 Command 事件
    Command 事件通过控件层次结构以 BubbleEvent 的形式引发
      

  2.   

    只知道linkbutton是导航链接而button是普通按钮,而oncommand事件要查查MSDN才知道;
      

  3.   

    当单击 LinkButton 控件时会引发 Command 事件。当命令名(如 Sort)与 LinkButton 控件关联时,通常使用该事件。这使您可以在一个 Web 页上创建多个 LinkButton 控件,并以编程方式确定单击了哪个 LinkButton 控件。ms-help://MS.MSDNQTR.2003FEB.2052/cpref/html/frlrfSystemWebUIWebControlsLinkButtonClassOnCommandTopic.htm
      

  4.   

    xiahouwen(武眉博<活靶子.NET>) 
    人家两星了,句句属实.加一句:button 还有web控件的<asp:button>有事件,<input type=submit >无事件,需要js添加才行.