44-10000 ASP.Net webform窗体程序helloworld输出

 

 

   本地为Demo02文件

   

using Microsoft.AspNetCore.Http; // 2 引入需要的命名空间 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Web;


namespace Demo02.Handler
{
    public class test:IHttpHandler // 继承提示修补 
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            context.Response.WriteAsync("hello world");// 提示修补 3 
        }
        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}
View Code

 效果:

 

posted @ 2021-11-25 12:38  优敏行  阅读(38)  评论(0)    收藏  举报