日期:2014-05-19  浏览次数:20388 次

asp.net用vb.net写动态表格 插入按钮的事件怎么写啊?
<script   language= "vb "   runat= "server ">
Sub   Page_load(sender   as   object,e   as   eventargs)

    dim   r   as   new   tablerow()
    dim   c   as   new   tablecell()
    dim   b   as   new   button()
    b.text= "确定 "
    b.click= "b_click "                         '这里会出错
    c.controls.add(b)
    r.cells.add(c)
    table1.rows.add(r)

End   Sub
Sub   b_click(sender   as   object,e   as   eventargs)  
    b.text= "按下按钮后 "
End   Sub
</script>
<body>
<form   runat= "server ">
    <asp:table   id= "table1 "   runat= "server "/>
</form>
</body>
我见网上都是用javascropt写的     我想用vb.net   怎么写?   有办法吗?

------解决方案--------------------
b.commandname= "b_click "