Asp.net的第一个一般处理程序
来源:互联网 发布:js字符串转数字相加 编辑:程序博客网 时间:2024/04/20 02:31
注意的问题:
1:新建的html 的后缀是htm
2: .ashx 里的那些需要引号,那些是不需要的
a.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title></head><body><a>漫步天下,流浪落魄</a></body></html>
simple.ashx
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title></head><body><form action="simplegogin.ashx" method="post"><input type="text" name="txtName" /><input type="text" name="txtPwd" /><input type="submit" value= "登录" /></form></body></html>
simplelogin.ashx
<%@ WebHandler Language="C#" Class="simplegogin" %>using System;using System.Web;public class simplegogin : IHttpHandler { public void ProcessRequest (HttpContext context) { string modelPath = context.Server.MapPath("a.htm"); string htmlsendback = System.IO.File.ReadAllText(modelPath); context.Response.ContentType = "text/html"; context.Response.Write(htmlsendback); } public bool IsReusable { get { return false; } }}
- Asp.net的第一个一般处理程序
- asp.net--一般处理程序的应用
- asp.net一般处理程序
- asp.net 一般处理程序
- Asp.net-一般处理程序
- asp.net 一般处理程序
- asp.net 一般处理程序
- 我的第一个asp.net程序
- 第一个 IronPython 的 ASP.NET 程序
- 网上看到的 asp.net 一般处理程序(.ashx)
- 第一个Asp.Net程序
- 第一个asp.net程序
- 《ASP.NET本质论》一般处理程序
- ASP.NET ASHX 一般处理程序教程
- ASP.NET ASHX 一般处理程序教程
- asp.net一般处理程序(1)准备工作
- asp.net一般处理程序(3)新增
- Asp.net 一般处理程序+扩展
- CSS之尺寸
- windows核心编程(笔记一)
- windows 关闭特定端口号
- 传统路径导出 VS 直接路径导出(oracle exp direct=y)
- OSGi:模块层
- Asp.net的第一个一般处理程序
- cppsqlite error
- java 序列化 反序列化(Serializable)详解
- js 驗證url
- 如何在AODV(NS-2)中实现混杂模式并且实现邻居监测功能[转载]
- 自动化用例设计
- This application is currently offline 解决方法
- python dict 字典 以及 赋值 引用的一些小实验
- ocm考试相关