2013年11月18日
摘要: color : #999999 文字颜色font-family : 宋体 文字字型font-size : 10pt 文字大小font-style:itelic 文字斜体育font-variant:small-caps 小字体letter-spacing : 1pt 文字间距line-height : 200% 设定行高font-weight:bold 文字粗体vertical-align:sub 下标字vertical-align:super 上标字text-decoration:line-through 加?h除线text-decoration:overline 加顶线text-decora 阅读全文
posted @ 2013-11-18 18:14 何金洋 阅读(635) 评论(0) 推荐(0) 编辑
  2013年7月22日
摘要: 1.所有的配置都必须被放在和标记之中.2.和之间是自定义配置,通常用来自己设置一些常量,Add添加常量,Key是常量的名称,value是常量的值.在程序中可以用System.Configuration.ConfigurationSettings.AppSettings["con"]取值SqlConnection con=new SqlConnection(System.Configuration.ConfigurationSettings.AppSettings["con"]);con.Open();SqlCommand cmd=new SqlComma 阅读全文
posted @ 2013-07-22 13:46 何金洋 阅读(428) 评论(0) 推荐(0) 编辑
  2013年5月13日
摘要: 把转换成declare @key nvarchar(3);declare @data nvarchar(max);declare @code nvarchar(50) declare @countrycn nvarchar(100) declare @countryus nvarchar(100)declare @provincecn nvarchar(100) declare @provinceus nvarchar(100) declare @citycn nvarchar(100) declare @cityus nvarchar(100) de... 阅读全文
posted @ 2013-05-13 16:21 何金洋 阅读(1836) 评论(0) 推荐(0) 编辑
摘要: 按指定符号分割字符串,返回分割后的元素个数 create function GetLength(@str nvarchar(1000),@split nvarchar(50) ) returns int as begin declare @length int --定义一个全局变量 set @length=1; set @str = ltrim(rtrim(@str));--去掉字符串两边的空格 declare @location int; --定义变量存放 分隔符的位置 set @location = charindex(@split,@str);... 阅读全文
posted @ 2013-05-13 11:23 何金洋 阅读(212) 评论(0) 推荐(0) 编辑
  2013年5月8日
摘要: 一.jquery对象 与 dom对象 的相互转换: 1.将dom对象转换为jquery对象: var div = document.getElementById("div1"); var $div = $(div); 2.将jquery 对象转换为dom对象: var Jobj = $("#div1"); var div1 = Jobj[0]; //Job.get(0); ... 阅读全文
posted @ 2013-05-08 18:28 何金洋 阅读(419) 评论(0) 推荐(1) 编辑
  2013年5月3日
摘要: View Code 1 create table AllScore( 2 3 id int identity(1,1) primary key,--主键 4 stu_name varchar(20),--学生名 5 category varchar(20),--学科 6 record float,--成绩 7 ) 8 /*插入数据*/ 9 insert into AllScore(stu_name,category,record)values('刘德华','Chinese',100)10 insert into AllScore(stu_name,categor 阅读全文
posted @ 2013-05-03 00:09 何金洋 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 1.需求: 话说 唐僧师徒四人,正过大雪山, 唐僧饿了,吩咐悟空去弄斋饭,悟空一个筋斗云飞开了。 突然,大风呼啸,雷鸣闪电,八戒和唐僧在慌乱中被雪山老妖抓走。 沙和尚到处寻找师徒下落无果。无奈之下,去找菩萨。 先前唐僧和八戒受菩萨所托,都带了一个SOS定位手表。 不管在那里,只要发送SOS信号,就可以把当前的经纬度发送给菩萨。 这雪山老妖势力范围大,方圆几百里都是他的妖洞,还真有点能耐, 唐僧和八戒 被这个洞卷到那个洞, 匆匆忙忙的,唐僧和八戒在每个妖洞里,都发送了SOS求救信息。 弄得 菩萨都不知 唐僧的下落,。 现在要你用SQL语句把最新的SOS记录给菩萨看。 每人只需要显示最新的一条SO 阅读全文
posted @ 2013-05-03 00:07 何金洋 阅读(185) 评论(0) 推荐(0) 编辑
  2013年4月25日
摘要: 一,新建一个一般处理程序Common.ashxView Code 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using System.Web.Script.Serialization; 6 7 namespace web_ajax { 8 /// <summary> 9 /// 处理班级表的增删改查10 /// </summary>11 public class Common : IHttpHandler {12... 阅读全文
posted @ 2013-04-25 23:11 何金洋 阅读(159) 评论(0) 推荐(0) 编辑
  2013年4月19日
摘要: //根据当前程序集的路径,加载xml文件 XDocument xdoc = XDocument.Load(@"d:\documents\visual studio 2010\Projects\Demo\第二题\MyLog4NetMain\log4net.xml"); //获取xml根节点的值 string dllPath = xdoc.Root.Attribute("path").Value; string dllType = xdoc.Root.Attribute("type").Value; ... 阅读全文
posted @ 2013-04-19 16:42 何金洋 阅读(188) 评论(0) 推荐(0) 编辑
  2012年12月26日
摘要: class SqlHelper { string sqlConnStr = ConfigurationManager.ConnectionStrings["str"].ConnectionString; public DataTable ExcuteDataTable(string sql, params SqlParameter[] param) { DataTable dt = new DataTable(); using (SqlConnection conn = new SqlConnectio... 阅读全文
posted @ 2012-12-26 01:48 何金洋 阅读(263) 评论(0) 推荐(0) 编辑