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

浪淘沙9个月前后端165
 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指定运行端口 如:http://localhost:5002

网站根目录新建:hosting.json输入:{   "urls": "http://localhost:5002" }...

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

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

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

asp.net core HttpClient post ,get

1、postusing System.Net.Http.Headers; using System.Text; using System.Text.Json;...

HttpClient 远程post,获取数据并对数组进行处理

using System.Text.Json; namespace xxtsoft.Web.Entry.Pages.sysadmins.ansyc {  &nb...

JNTemplate 文章标签解析

using JinianNet.JNTemplate; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetC...

asp.net core Aspose.Words 文本换行

using Aspose.Words;// 替换换行符为 Word 中的换行符var placeholders = new&nbs...

发表评论    

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