| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 2818 人关注过本帖
标题:第一个asp.net一般处理程序,浏览器访问不到,各种出错
取消只看楼主 加入收藏
高逆水行舟
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2016-3-19
结帖率:100%
收藏
 问题点数:0 回复次数:0 
第一个asp.net一般处理程序,浏览器访问不到,各种出错
程序代码:


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ASP01Handle
{
    /// <summary>
    /// c01first 的摘要说明
    /// </summary>
    public class c01first : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            context.Response.Write("<title>我爱广州小蛮腰~小蛮腰上太阳伤~~!</title>");
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}




<?xml version="1.0" encoding="utf-8"?>

<!--
  有关如何配置 应用程序的详细信息,请访问
  http://go.
  -->

<configuration>
    <system.web>
      <compilation debug="true" targetFramework="4.5" />
      <urlMappings enabled="true"><add url="~/c01first.ashx" mappedUrl ="~/c01first.ashx"/>
      </urlMappings>
      <httpRuntime targetFramework="4.5" />
    </system.web>

</configuration>


图片附件: 游客没有浏览图片的权限,请 登录注册
图片附件: 游客没有浏览图片的权限,请 登录注册
图片附件: 游客没有浏览图片的权限,请 登录注册
图片附件: 游客没有浏览图片的权限,请 登录注册
图片附件: 游客没有浏览图片的权限,请 登录注册
搜索更多相关主题的帖子: 浏览器 
2017-03-30 11:21
快速回复:第一个asp.net一般处理程序,浏览器访问不到,各种出错
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.016091 second(s), 10 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved