随笔分类 -  .NET

摘要:在项目中,聪明的Jenny童鞋提了一个suggestion,即将同一个店同一人提交的请求,经过上级批准之后,邮件内容需要合并。非常滴合理有木有~~提交十个申请,将收到十封邮件,的确不友好哦。可是由于中间任何一级supervisor都可以为子店提交request,高level的都可以批准。)于是,烧脑... 阅读全文
posted @ 2015-02-03 21:23 Genie in the bottle 阅读(132) 评论(0) 推荐(0) 编辑
摘要:一、在Foreach之前要判断是否为空。常常从数据库里取出来表就直接用了,很少记得判断是否有值。不严谨的说。专业人员写的是酱滴。。。1 DataLayer.PMSecDataSet.PMSECRequestDataTable requestDataTable = adapter.... 阅读全文
posted @ 2015-02-03 13:16 Genie in the bottle 阅读(155) 评论(0) 推荐(0) 编辑
摘要:一、ViewState的使用在项目中,我一直在用Common的方法读取一些信息,但是Cynthia习惯将它存入ViewState中。ViewState 它是由ASP.NET页面框架管理的一个隐藏的窗体字段。当ASP.NET执行某个页面时,该页面上的ViewState值和所有控件将被收集并格式化成一个... 阅读全文
posted @ 2015-01-30 14:29 Genie in the bottle 阅读(184) 评论(0) 推荐(0) 编辑
摘要:今天看到一个人每个月更新博客,结果七年后改行去卖土特产。。。感慨良多。。。虽然我也想去开餐厅~~今天需求里有一个多重表头,感觉比较奇特,特意留下记录,以防我的大脑被艾滋海默攻占~~没有女主的命,不能得女主的病~先看效果 本小主脑残写个dropdownlist,忽略之。下图的方法是在不隐藏gridvi... 阅读全文
posted @ 2015-01-04 18:42 Genie in the bottle 阅读(221) 评论(0) 推荐(0) 编辑
摘要:打开Plan才知道,原来这个项目伴随了我整个八月,做项目的时间果然特别快~~首先把之前出现但是只知其然但是不知其所以然的知识点总结一下一、使用母版页二、Ajax 控件 & Customer Control (ScriptManager PageLock UpdatePanel CalendarExt... 阅读全文
posted @ 2014-09-09 16:16 Genie in the bottle 阅读(304) 评论(0) 推荐(0) 编辑
摘要:看到书上的例子很正常,于是,我写了个不正常一点的。书上的是这样的 class Program { static void Main(string[] args) { int[] mn = { 1,2,3,4,5,6,7,8,9}; ... 阅读全文
posted @ 2014-07-04 15:51 Genie in the bottle 阅读(296) 评论(0) 推荐(0) 编辑
摘要:let子句,可以作为临时变量储存表达式的结果,但是let子句一旦初始化后无法再次进行更改。1. static void Main(string[] args) { string[] names = { "xyz", "now you see", "i can say"... 阅读全文
posted @ 2014-07-04 07:47 Genie in the bottle 阅读(196) 评论(0) 推荐(0) 编辑
摘要:Join子句据说可以实现3中连接关系。1.内部连接——元素的连接关系必须同时满足被连接的两个数据源2.分组连接3.左外连接1.最基本的,内部连接,类似于sql中inner join。 由于student类和phone类只有一个匹配的连接,因此,只返回一个id,1. public class stud... 阅读全文
posted @ 2014-07-03 15:49 Genie in the bottle 阅读(170) 评论(0) 推荐(0) 编辑
摘要:特别喜欢同事看到我写了一句小排序的时候说,他当然喜欢Linq了,虽然我只是baidu之,不知其然也不知其所以然。基本格式 var = from in where orderby select 1. from & select static void Main(string[] a... 阅读全文
posted @ 2014-07-03 11:13 Genie in the bottle 阅读(655) 评论(0) 推荐(0) 编辑
摘要:之前接触一个往Console里输入参数的项目,资深QA教我怎么run,灰常脸红。 今日无事,baidu之。Step1 写简单Console Code. 1 class Program 2 { 3 static void Main(string[] args) 4... 阅读全文
posted @ 2014-07-01 13:35 Genie in the bottle 阅读(329) 评论(0) 推荐(0) 编辑
摘要:1 using System.Reflection; 2 3 using System.Data.SqlClient; 4 5 6 7 8 9 TransactionSelectTableAdapter adapter = new Transacti... 阅读全文
posted @ 2014-06-13 11:19 Genie in the bottle 阅读(262) 评论(0) 推荐(0) 编辑
摘要:第一次接触RadioBttonList时候,觉得这个控件完全可以取代RadioButton,操作更加简便。直到今天,完成了一个小小的功能,才发现,尺有所短不是瞎掰的。需求如下:Add Proration Rate radio buttons.Radio button for a fixed rateSelected by defaultMeaning using HR user for calculationRadio button for Based on old logic亲爱的Radio之间隔了其他控件,于是,List毫无用武之地。只能定义Group将Radio绑在一组内。前台 1 2. 阅读全文
posted @ 2013-11-18 20:26 Genie in the bottle 阅读(1070) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示