如何在服务器端创建确认消息框?

如何在服务器端创建确认消息框?

问题描述:

我在C#.net中开发了小型数据输入应用程序,在服务器端单击按钮,我编写了代码,好像在数据库中可用的特定输入数据已废弃前一个并将新数据插入数据库,否则将数据插入数据库。所以我如果数据已经存在,则希望应用确认消息询问确认消息(是/否)用户选择确认消息为是然后废弃前一个并输入新数据否则跳过该过程。请提供以上工作流程的示例代码

I developed small data entry application in C#.net,In server side button click I wrote code as if particular entered data available in database obsolete the previous one and insert the new data into database else insert the data into database.so I wish to apply confirmation message for if the data already exists ask confirmation message (yes/no) user select confirmation message as yes then obsolete previous one and entered new data otherwise skip the process. Please provide sample code for above workflow

在服务器端创建消息框是没有意义的。

如果您想提醒用户监视服务器端,创建日志记录并将消息写入事件日志或您选择的任何其他记录器。
Creating a message box on the server side makes no sense.
If you want to alert users monitoring the server side, create logging and write messages into event logs or any other logger of your choice.