如何获取网页的确认信息,因为要删除数据不知如何判断是否点的是还是否
抱歉啊,好久没用Repeater什么的了。
[解决办法]
<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>
protected void rptItinerary_ItemCommand(object source, RepeaterCommandEventArgs e)
{
if ("delete" == e.CommandName)
{
if (BL.Itinerary.DeleteList(e.CommandArgument.ToString()))
{
BindRepeater();
Common.MessageBox.Show(this, "Deleted successful");
}
else
{
Common.MessageBox.Show(this, "Delete failed");
}
}
}
我原来是这么写的。
[解决办法]
我没有拿它做什么BOOL运算啊。。。我是把它当做参数给了一个方法。。。
你自己找找原因吧,我两年前的代码都给找出来贴上了。。。。