2015年4月9日
摘要: https://code.csdn.net/jy02305022/blqw-ajax2一 Ajax的实现方式1、使用一般的webform,在页面用jQuery ajax调用,再从取得的html数据中取得内的内容,写入DOM优点:不用改变现有的asp.net开发模式,可以使用现成的页面;ajax取得的... 阅读全文
posted @ 2015-04-09 23:19 雪夜 阅读(182) 评论(0) 推荐(0) 编辑
摘要: WebForm使用方式与WinForm很是相似,可控性非常高! 1、调用别的按钮事件: BtnSelect_Click(sender, e); 阅读全文
posted @ 2015-04-09 13:35 雪夜 阅读(171) 评论(0) 推荐(0) 编辑
  2015年4月8日
摘要: 从数据库里随机读取几条数据Access: select top n * from table order by rnd(id)‘id为数据库的自动编号字段Sql Server: select top n * from table order by newid()MySQL:SELECT * FROM... 阅读全文
posted @ 2015-04-08 22:17 雪夜 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 1、取值: protected void Button1_Click(object sender, EventArgs e) { string str = ""; foreach (GridViewRow row in this... 阅读全文
posted @ 2015-04-08 08:26 雪夜 阅读(244) 评论(0) 推荐(0) 编辑
  2015年4月3日
摘要: 获取母版页的相关内容有两种方法1 通过findcontrol找控件ID需要在此事件中~因为Page_load中时是先内容页加载然后才是母版页加载protected void Page_LoadComplete(object sender, EventArgs e){Label2.Text = "现在... 阅读全文
posted @ 2015-04-03 16:51 雪夜 阅读(545) 评论(0) 推荐(0) 编辑
摘要: 在CSDN的博文中看到了muziduoxi的文章:http://blog.csdn.net/muziduoxi/article/details/5386543 虽然里面提到的方法没有解决我的难题,但是我也是根据里面的方法想到现在所用的方法的,所以还是需要感谢 因为我要的变量初始化的时候是空的,如果使... 阅读全文
posted @ 2015-04-03 16:44 雪夜 阅读(3266) 评论(0) 推荐(0) 编辑
摘要: Guid 使用记录; Guid 数据不能设为null 用 00000000-0000-0000-0000-000000000000 代替默认值。实体新建时,可以赋值为 Guid.Empty 也就是 00000000-0000-0000-0000-000000000000 Gui... 阅读全文
posted @ 2015-04-03 16:05 雪夜 阅读(251) 评论(0) 推荐(0) 编辑
  2015年4月2日
摘要: 坑人的引用类型。。。。输出看看结果是什么Queue strStranList = new Queue();StringBuilder strSql = new StringBuilder(); strSql.Append("Update Jia72_Members Se... 阅读全文
posted @ 2015-04-02 16:25 雪夜 阅读(665) 评论(0) 推荐(0) 编辑
  2015年4月1日
摘要: 1 try 2 { 3 DBUtility.CommandInfo dbcom = new DBUtility.CommandInfo(); 4 List strStranLis... 阅读全文
posted @ 2015-04-01 15:29 雪夜 阅读(830) 评论(0) 推荐(0) 编辑
摘要: 1、GridView 行的多选 ... 阅读全文
posted @ 2015-04-01 08:37 雪夜 阅读(446) 评论(0) 推荐(0) 编辑