日期:2014-05-17 浏览次数:20746 次
protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e)
{
if (e.CommandName=="del")
{
bool DiagReslu = Page.ClientScript.RegisterStartupScript(Page.GetType(), "Message", "return confirm('retun confirm('确认要删除吗?');')", true);
//我这样写报错.VOID类型不能转为BOOL型
}
}
<asp:Button ID="btn" runat="server" Text="删除" OnClientClick="retun confirm('确认要删除吗?');" />
<asp:LinkButton ID="lbtnDel" runat="server" CommandName="delete" CommandArgument='<%#Eval("Itinerary_NO")%>'
OnClientClick="return confirm('Are you sure you want to delete this record?');">Delete</asp:LinkButton>