asp.net core return Content 返回可解析的html

浪淘沙2个月前后端47
return Content(
    "<!DOCTYPE html><html><body><h1 style='text-align:center;'>获取用户信息出错,请重新刷新扫码</h1></body></html>",
    "text/html; charset=utf-8"
);


相关文章

asp.net core MiniExcelLibs 导出excel

public IActionResult OnPostDown() {        DataTable ...

导出excel

@page @model xxtsoft.Web.Entry.Pages.test2Model @{ } <form method="post"&...

asp.net core razor 写入读取cookie集合

@{     Layout = null; } <form method="post">...

ubuntu 删除asp.net core 8.0

1. 查找已安装的 ASP.NET Core 8.0 版本dotnet --list-runtimes dotnet --list-sdks2. 删除 ASP.NET Core...

asp.net core url编码

using System.Text.Encodings.Web; string url = "测试 参数 &&nbs...

asp.net core HttpClient post ,get

1、postvar url = "https://api.dingtalk.com/v1.0/oauth2/userAccessToken";...

发表评论    

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