asp.net core弹出对话框最佳实践

浪淘沙1个月前后端56
 public void OnGet()
 {         
     TempData["AlertMessage"] = "操作成功!";     

 }
@if (TempData["AlertMessage"] != null)
{
    <script>
        alert('@Html.Raw(TempData["AlertMessage"])');
        var p=parent.layer.getFrameIndex(window.name); parent.layer.close(p); parent.location.reload();
    </script>
}


相关文章

asp.net core sqlsugar 复制插入并返回新id

var result = await _db.Ado.GetScalarAsync("insert into qy_gw(gwmc...

Razor 遍历 DataTable

@using System.Data <table class="table table-bordered table-striped&n...

asp.net core furion swagger生产环境中 隐藏

asp.net core furion swagger生产环境中 隐藏

开发环境中显示:生产环境中隐藏:...

查看ubuntu 是否正确安装asp.net core 8.0

dotnet --list-sdks如果您看到列出的.NET Core 8.0 SDK版本,则表明.NET Core 8.0已正确安装。...

asp.net core 绑定下拉

   public List<SelectListItem> zplx { get; set; }  [BindProperty]  public...

asp.net 取得邮政Ems物流数据

asp.net 取得邮政Ems物流数据

一、引用dllBouncyCastle.Crypto.rar二、SM4加密using System; using System.Collections.Generic; usi...

发表评论    

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。