QueryString
.Net Framework
Request.QueryString["cartitemids"]
.Net core
Request.Query["cartitemids"].FirstOrDefault()
response.Output
.Net Framework
JsonTextWriter writer = new JsonTextWriter(response.Output)
.Net core
JsonTextWriter writer = new JsonTextWriter(new StreamWriter(response.Body))
GetCustomAttributes
.Net Framework
filterContext.ActionDescriptor.GetCustomAttributes(typeof(UnAuthorize), false);
.Net core
((ControllerActionDescriptor)filterContext.ActionDescriptor).MethodInfo.GetCustomAttributes(typeof(UnAuthorize), false);
response
.Net Framework
response.ContentType = "application/ms-excel; charset=gb2312"; response.ContentEncoding = System.Text.Encoding.GetEncoding("gb2312");
response.Headers.Set("Content-Disposition", string.Format("attachment; filename={0}-{1:yyyy-MM-dd}.xls", _fileName, DateTime.Now));
.Net core
response.ContentType = "application/ms-excel; charset=gb2312"; response.Headers.Add("Content-Disposition", string.Format("attachment; filename={0}-{1:yyyy-MM-dd}.xls", _fileName, DateTime.Now));