- <div id="container_buttom" style=" text-align:center; margin:5px 0;" >
- <input type="submit" id="buttonOK" runat="server" onclick="return Validate()" onserverclick="buttonOK_Click"
- class="mainbutton" value="确 定"/>
- <input type="button" id="buttonQuit" runat="server" onclick="if(!TransferBack()) return;" onserverclick="buttonQuit_Click"
- class="mainbutton" value="返 回" />
- </div>
注意两个onclick的区别,还有如果有调用后台方法,一定要加runat="server"
时间: 2024-10-23 22:34:09