下面是我的代码
btnDelete.Attributes.Add("onclick", "{return ConfirmAction('You are about to Delete Order . Please Note \r\n 1. Order no longer can be retrieved \r\n 2. Changes to the order are not saved. \r\n Are you sure you wish to continue to Delete?')};");
我希望确认框显示带有是和取消按钮的消息,如下所示:
您即将删除订单。请注意: 1.订单无法
找回
2.订单更改未保存
您确定要继续删除吗?
我尝试了 "\n" 、 '\n' 和 "\r\n" ,但仍然无法插入行。