上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 49 下一页
摘要: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Cookie1.aspx.cs" Inherits="Cookie1" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmln 阅读全文
posted @ 2012-03-18 23:46 简单--生活 阅读(225) 评论(0) 推荐(0) 编辑
摘要: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="ViewState.aspx.cs" Inherits="ViewState" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html 阅读全文
posted @ 2012-03-18 23:43 简单--生活 阅读(178) 评论(0) 推荐(0) 编辑
摘要: <!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 method="post&qu 阅读全文
posted @ 2012-03-18 23:41 简单--生活 阅读(155) 评论(0) 推荐(0) 编辑
摘要: <%@ WebHandler Language="C#" Class="IntValue2" %>using System;using System.Web;public class IntValue2 : IHttpHandler { public void ProcessRequest (HttpContext context) { context.Response.ContentType = "text/html"; context.Response.Write("Hello World"); s 阅读全文
posted @ 2012-03-18 23:39 简单--生活 阅读(271) 评论(0) 推荐(0) 编辑
摘要: <%@ WebHandler Language="C#" Class="IntValue" %>using System;using System.Web;/* 数值自增 * 实现input的自增,点击按钮input中的值自动增加,代码见备注 * 使用aspx重写input的自增 * * */public class IntValue : IHttpHandler { public void ProcessRequest (HttpContext context) { context.Response.ContentType = " 阅读全文
posted @ 2012-03-18 23:37 简单--生活 阅读(224) 评论(0) 推荐(0) 编辑
摘要: * Get与Post * 还可以设定form的method属性指定表单提交方式,get(默认值)是通过url传递表单值,post传递的表单值是隐藏到http报文中,url中看到不 * get和post的区别: get是通过url传递表单值,post通过url看不到表单域的值: * get传递的数据量是有限的,如果要传递大数据量不能用get,比如type="file"上传文件,type="password"传递密码或者重新提交表单的问题,get则没有 * * Get方式Url数据格式样,服务端文件名后跟着? 由于客户端可能向服务器端提交多个键值对,键值对之 阅读全文
posted @ 2012-03-18 23:36 简单--生活 阅读(256) 评论(0) 推荐(0) 编辑
摘要: <%@ WebHandler Language="C#" Class="IsPostBack" %>using System;using System.Web;public class IsPostBack : IHttpHandler { public void ProcessRequest (HttpContext context) { context.Response.ContentType = "text/html"; //context.Response.Write("Hello World" 阅读全文
posted @ 2012-03-18 23:35 简单--生活 阅读(184) 评论(0) 推荐(0) 编辑
摘要: <%@ WebHandler Language="C#" Class="Hello1" %>using System;using System.Web;public class Hello1 : IHttpHandler { public void ProcessRequest (HttpContext context) { context.Response.ContentType = "text/html"; //表示响应的数据是html数据 //context.Response.Write("Hello Wo 阅读全文
posted @ 2012-03-18 23:33 简单--生活 阅读(2223) 评论(0) 推荐(1) 编辑
摘要: WebApplication(web应用程序)和webSite(网站)的区别,webSite是为了兼容从asp转过来的开发人员的习惯而存在的,用起来简单,比如不需要创建命名空间cs代码修改以后不需要重启就能看到变化(无论是website还是webapplication,修改aspx都不需要重启).但是不利于工程化开发,比如代码出错不容易发现,代码不分命名空间,开发技术上没有任何区别,只是开发,调味试习惯不同而已讲简单基础知识面时用website,讲高级技术和做项目的时候用webapplicastion接下来揭示原理, 和好手和aspx暂时告别 阅读全文
posted @ 2012-03-18 23:31 简单--生活 阅读(276) 评论(0) 推荐(0) 编辑
摘要: <%@ Page Title="主页" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID=" 阅读全文
posted @ 2012-03-18 23:24 简单--生活 阅读(214) 评论(0) 推荐(0) 编辑
上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 49 下一页
简单--生活(CSDN)