10th Aug, 2006

如何在 ASP.NET GridView/FormView 設立一個會確認的 Delete Link/Button/Image

開始一個 Template Field

[geshi lang=asp]
<asp:templatefield>
<itemtemplate>

<asp:linkbutton text="刪除" commandname="Delete" onclientclick="return confirm(‘確認刪除?’);" runat="server" id="ButtonDelete">
</asp:linkbutton>

</itemtemplate>
</asp:templatefield>

[/geshi]

相關文章

你的回應






Your response: