摘要: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xml 阅读全文
posted @ 2012-03-18 23:58 简单--生活 阅读(320) 评论(0) 推荐(0)
摘要: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xml 阅读全文
posted @ 2012-03-18 23:56 简单--生活 阅读(234) 评论(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:53 简单--生活 阅读(198) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net;namespace 破解Default{ class Program { static void Main(string[] args) { WebClient wc = new WebClient(); wc.Encoding = Encoding.UTF8; for (int i = 0; ... 阅读全文
posted @ 2012-03-18 23:51 简单--生活 阅读(466) 评论(0) 推荐(0)
摘要: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="AspNetSession1.aspx.cs" Inherits="AspNetSession1" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 阅读全文
posted @ 2012-03-18 23:49 简单--生活 阅读(253) 评论(0) 推荐(0)
摘要: <%@ 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 简单--生活 阅读(236) 评论(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 简单--生活 阅读(187) 评论(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 简单--生活 阅读(164) 评论(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 简单--生活 阅读(280) 评论(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 简单--生活 阅读(235) 评论(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 简单--生活 阅读(264) 评论(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 简单--生活 阅读(197) 评论(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 简单--生活 阅读(2237) 评论(0) 推荐(1)
摘要: WebApplication(web应用程序)和webSite(网站)的区别,webSite是为了兼容从asp转过来的开发人员的习惯而存在的,用起来简单,比如不需要创建命名空间cs代码修改以后不需要重启就能看到变化(无论是website还是webapplication,修改aspx都不需要重启).但是不利于工程化开发,比如代码出错不容易发现,代码不分命名空间,开发技术上没有任何区别,只是开发,调味试习惯不同而已讲简单基础知识面时用website,讲高级技术和做项目的时候用webapplicastion接下来揭示原理, 和好手和aspx暂时告别 阅读全文
posted @ 2012-03-18 23:31 简单--生活 阅读(289) 评论(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 简单--生活 阅读(222) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;/* 课前说明 * 内容: 掌握基于ASP.Net的web开发,ASP.Net内部原理,状态管理(Cookie,Session,ViewState等) * 普通ASP.net控件,数据验证 母版 ListView/Repeater等数据绑定控件 AJAX, 缓存 Membership 导航 自定义控件等 * * 目录: 能够使用A. 阅读全文
posted @ 2012-03-18 23:18 简单--生活 阅读(203) 评论(0) 推荐(0)
简单--生活(CSDN)