2012年8月10日

c#类的例子

摘要: C#类的例子using System;using System.Collections.Generic;using System.Linq;using System.Text;//关于类的例子namespace 类的例子{public class Program{public static void Main(string[] args){动物 d = new 动物();d.物种 = "植食动物";d.size = "20";Console.WriteLine(d.Eats("草","马"));Console.Re 阅读全文

posted @ 2012-08-10 10:33 zieyee 阅读(136) 评论(0) 推荐(0)

ASP.NET之Response

摘要: 1、Response派生自HttpResponse类,主要用于回应客户端,通知浏览器回应内容、服务器端的信息以及输出指定内容。2、主要方法(1)、Response.Clear();用于删除所有存在缓冲区里的html输出,只删除预备输出内容,并不删除Response头信息。(2)、Response.Expires = (int)* ;设置页面过期时间。(3)、Response.ContentType;用于描述内容类型的字符串,格式为type/subtyle,前者标示内容分类,后者标示特定内容类型。例:Response.ContentType = “image/png”;//标示输出png格式的图 阅读全文

posted @ 2012-08-10 09:49 zieyee 阅读(171) 评论(0) 推荐(0)

导航