📜  c#函数执行后如何执行脚本 - C#代码示例

📅  最后修改于: 2022-03-11 14:49:08.391000             🧑  作者: Mango

代码示例1
BY LOVE,  At the place of swal , you can use alert() function also.

int NumberOfRows = oRSEntities.Menu_Item.Count();
string message = $" {NumberOfRows} Records saved successfully.";
string script = "window.onload = function(){ swal('";
script += message;
script += "')};";
ClientScript.RegisterStartupScript(this.GetType(), "SuccessMessage", script, true);