2014年4月12日

摘要: Application(4)URL地址中的参数(5)通过隐藏字段来传递数据(6)Server.Transfer(7)通过序列化对象(8)........下面就分别一一介绍:(1)使用Sessionsession对象是用来记录浏览器端的变量,是个别浏览器端专用的变量,对于每一个浏览器访问时都会自动产生一个seseion对象,该对象提供一个存储场所,用来存储仅仅对该访问者在会话的活动期间打开的网页可用的变量和对象。这样就用可以用来在Web间传递专对单个浏览器端使用的数据。其定义方法:session(“变量名”)=数值如:Session["testTransmitVaraint" 阅读全文
posted @ 2014-04-12 14:12 听哥哥的话 阅读(378) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication5{ class Program { public static int[,] a = new int[7, 7]; public static int count = 0; public static int row = 0; public sta... 阅读全文
posted @ 2014-04-12 14:10 听哥哥的话 阅读(475) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;using System.IO;using System.Reflection;namespace WindowsFormsApplication1{ public partial c... 阅读全文
posted @ 2014-04-12 14:06 听哥哥的话 阅读(152) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.IO;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace C11_资源管理器{ public partial class Form1 : Form { string path = @"d:\广州传智"; ... 阅读全文
posted @ 2014-04-12 14:02 听哥哥的话 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1. 导入等下我们要使用的文件AjaxMsgHelper.cs和DataHelper.cs他们的代码如下using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace WebApplication1{ /// /// 生成 Ajax 响应消息 字符串 /// 数据格式:{"statu":"err","msg":"出错啦~~","data":[{},{}],"nextU 阅读全文
posted @ 2014-04-12 13:55 听哥哥的话 阅读(366) 评论(0) 推荐(0) 编辑

2014年4月10日

摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Activities;namespace WorkflowConsoleApplication3{ public sealed class InputDataActivity : CodeActivity { // 定义一个字符串类型的活动输入参数 public OutArgument Money { get; set; } // 如果活动返回值,则从 CodeActivity // 派生并... 阅读全文
posted @ 2014-04-10 09:36 听哥哥的话 阅读(399) 评论(0) 推荐(0) 编辑

2014年4月9日

摘要: msg 类的定义using System; using System.Collections.Generic;using System.Linq;using System.Reflection;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication2{ public class user where T :class,new() { public string getClassName() { return typeof(T).Name.ToString(); } }}user 类的定义u... 阅读全文
posted @ 2014-04-09 09:24 听哥哥的话 阅读(209) 评论(0) 推荐(0) 编辑

2014年4月8日

摘要: 定义抽象的人类using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;namespace ConsoleApplication1{ public abstract class person { public abstract string ting(); public abstract string shuo(); }}定义子类 girl 和boy 类using System; using System.Collect.. 阅读全文
posted @ 2014-04-08 14:00 听哥哥的话 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 定义抽象的人类using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;namespace ConsoleApplication1{ public abstract class person { public abstract string ting(); public abstract string shuo(); }}定义子类 girl 和boy 类using System; using System.Collect.. 阅读全文
posted @ 2014-04-08 14:00 听哥哥的话 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 工厂方法模式8.1 女娲造人的故事 东汉《风俗通》记录了一则神话故事:“开天辟辟,未有人民,女娲搏,黄土作人……”,讲述的内容就是大家非常熟悉的女娲造人的故事。开天辟地之初,大地上并没有生物,只有苍茫大地,纯粹而洁净的自然环境,寂静而又寂寞,于是女娲决定创造一个新物种(即人类)来增加世界的繁荣,怎么制造呢? 别忘了女娲是神仙,没有办不到的事情,造人的过程是这样的:首先,女娲采集黄土捏成人的形状,然后放到八卦炉中烧制,最后放置到大地上生长,工艺过程是没有错的,但是意外随时都会发生: 第一次烤泥人,兹兹兹兹,感觉应该熟了,往大地上一放,哇,没烤熟!于是一个白人诞生了!(这也是缺乏经验的最好证明) 阅读全文
posted @ 2014-04-08 10:28 听哥哥的话 阅读(380) 评论(0) 推荐(0) 编辑

导航