Sep 23, 2013, 2:16 PM
[CLOSED] confirm message in codebehind?
i code batch update in codebehind, when delete a record, I want to show a confirm message "are you sure to delete it?",
how to do it in codebehind?
how to do it in codebehind?
protected void BatchUpdate(object sender, DirectEventArgs e)
{
ChangeRecords<model.crm.hdsoso.com.column> persons = new StoreDataHandler(e.ExtraParams["data"]).BatchObjectData<model.crm.hdsoso.com.column>();
foreach (model.crm.hdsoso.com.column deleted in persons.Deleted)
{
try
{
//here I want to show message,such as
// X.Msg.Confirm("alert","are you sure to delete?", callback fun) ??
_columnService.Delete(deleted);
}
catch (Exception)
{
X.Msg.Alert("消息", "删除失败").Show();
}
}
foreach (model.crm.hdsoso.com.column updated in persons.Updated)
{
try
{
_columnService.Update(updated);
}
catch (Exception)
{
X.Msg.Alert("消息", "更新失败").Show();
}
}
Last edited by Daniil; Oct 04, 2013 at 5:56 AM.
Reason: [CLOSED]