摘要: 前言A标签是html中常用的标签,它与button按钮是实现页面跳转的两种最常用的方式,经常在开发中我们更喜欢使用A标签,它们两者可以相互替换,但他们在执行js脚本时有着细微的区别。使用A标签执行JS脚本的几种方式1、href="javascript:js_method();"这是我们最常用的方法,... 阅读全文
posted @ 2014-07-16 17:06 飞翔. 阅读(1417) 评论(0) 推荐(0) 编辑
摘要: Linq To Sql常用方法使用总结准备工作:数据表:Table1ID int PKCol1 varchar(50)Col2 int======================================Table2ID int PKoID int ... 阅读全文
posted @ 2014-07-04 17:38 飞翔. 阅读(505) 评论(0) 推荐(0) 编辑
摘要: 首先我们看下String.Split 方法有6个重载函数:1) public string[] Split(params char[] separator)2) public string[] Split(char[] separator, int count)3) public string[] ... 阅读全文
posted @ 2014-06-27 12:03 飞翔. 阅读(569) 评论(0) 推荐(0) 编辑
摘要: 1.基本模型 ... 阅读全文
posted @ 2014-04-02 13:11 飞翔. 阅读(170) 评论(0) 推荐(0) 编辑
摘要: #region DataTable转List /// /// DataTable装换成List集合 /// /// DataTable数据源 /// public List GetListFromDataTable(DataTable dt) { // 定义集合 List ts = new List(); // 获得此模型的类型 Type type = typeof(Royal.Reporting.Co... 阅读全文
posted @ 2014-03-28 14:20 飞翔. 阅读(157) 评论(0) 推荐(0) 编辑
摘要: public CustomerBillingDetailResponse GetCustomerBillingDetailInfo(string customer_id, DateTime from_date, DateTime to_date, string language) { CustomerBillingDetailResponse req = new CustomerBillingDetailResponse(); string URL = string.Format("http://113.105.65.104:222... 阅读全文
posted @ 2014-03-26 12:49 飞翔. 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 1.string类型格式string类型。 cuscodenew = cusaccount.Element("cuscodenew").Value, accdate = string.IsNullOrEmpty(cusaccount.Element("accdate").Value.ToString()) ? "" : DataTypeHelper.GetDateTime(cusaccount.Element("accdate").Value).ToString("dd-MM-yyyy"), b 阅读全文
posted @ 2014-03-26 12:02 飞翔. 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 一。1.货币 2.5.ToString("C") ¥2.502.十进制 25.ToString("D5") 000253.科学型 25000.ToString("E") 2.500000E+0054.固定点25.ToString("F2") 25.005.常规 2.5.ToString("G") 2.56.数字 2500000.ToString("N") 2,500,000.007.十六进制 255.ToString("X") FF常用格式举例:(1)in 阅读全文
posted @ 2014-03-26 11:56 飞翔. 阅读(119) 评论(0) 推荐(0) 编辑