📜  执行 c# 代码时执行脚本 - TypeScript 代码示例

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

代码示例1
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);