你好多分呀。在另一个贴里已经回答了。
onitemcommand事件是在任何按钮被单击时才发生。你上面全是绑定的。又没有按钮,肯定没有反应了。

解决方案 »

  1.   

    不好意思看错了。
    你的代码没有错误。你这样试试:
    if ctype(e.commandsource,button).commandname="detail" then
       ....
    end if
      

  2.   

    <asp:templatecolumn headertext="????">
        <itemtemplate>
              <asp:button id="moreinf" text="????" commandname="detail" runat="server" />
         </itemtemplate>
    </asp:templatecolumn>
    错在上边了,不能用模板列,用按钮列。
    应该改成:
    <asp:buttonColumn CommandName="detail" Text="" HeaderText=""/>