摘要: 需要用到的几个方法string.Split(char);//按照char进行拆分,返回字符串数组Array.IndexOf(Array,string):返回指定string在array中的第一个匹配项的下标Array.LastIndexOf(Array,string):返回指定string在arra... 阅读全文
posted @ 2013-04-30 17:24 叶亮 阅读(5320) 评论(0) 推荐(0) 编辑
摘要: //根据不同的浏览器创建异步对象function creatXmlHttp() { xhobj = false; try { xhobj = new ActiveXObject("Msxml2.XMLHTTP"); //iemsxml3.0 } catch (e) {... 阅读全文
posted @ 2013-04-30 15:52 叶亮 阅读(397) 评论(0) 推荐(0) 编辑
摘要: 在ASP.NET开发中,我们经常要用到数据库的连接字符串,这个链接字符串一般我们都配置到web.config中,配置到我们的web.config中后我们需要到项目中去读取这个配置的字符串。下面是我经常用的用来获取web.config中数据库连接字符串的2种方法Web.Config中的连接字符串:数据... 阅读全文
posted @ 2013-04-30 15:19 叶亮 阅读(689) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 3 4 namespace test10 5 { 6 class Program 7 { 8 //计算字符串中每种字符出现的次数(面试题)。“Welcome to Chinaworld”,不区分大小写,打印“W 2”“e 2”... 阅读全文
posted @ 2013-04-30 14:09 叶亮 阅读(428) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace test9{ class Program { // 班级学生总成绩和平均成绩计算: ... 阅读全文
posted @ 2013-04-30 13:52 叶亮 阅读(1305) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace test8 7 { 8 class Program 9 {10 ... 阅读全文
posted @ 2013-04-30 13:50 叶亮 阅读(1203) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace test6 7 { 8 class Program 9 {10 ... 阅读全文
posted @ 2013-04-30 13:49 叶亮 阅读(690) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace test5 7 { 8 class Program 9... 阅读全文
posted @ 2013-04-30 13:47 叶亮 阅读(2137) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace test4 7 { 8 class Program 9 {10 ... 阅读全文
posted @ 2013-04-30 13:45 叶亮 阅读(774) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace test2 7 { 8 class Program 9 {10 ... 阅读全文
posted @ 2013-04-30 13:43 叶亮 阅读(1578) 评论(0) 推荐(0) 编辑