随笔分类 -  Net

摘要:from:http://blog.csdn.net/magiccops/article/details/42969363屏蔽默认返回xml格式:Global文件加:GlobalConfiguration.Configuration.Formatters.XmlFormatter.SupportedM... 阅读全文
posted @ 2015-04-02 11:30 94cool 阅读(3782) 评论(4) 推荐(0) 编辑
摘要:from:http://www.cnblogs.com/litian/p/3870975.html1.JSON序列化string JsonStr= JsonConvert.SerializeObject(Entity);eg:A a=new A(); a.Name="Elain00"; a.H... 阅读全文
posted @ 2015-04-01 14:32 94cool 阅读(630) 评论(0) 推荐(0) 编辑
摘要:///去掉字符串中的数字publicstaticstringRemoveNumber(stringkey){returnRegex.Replace(key,@"\d","");}//去掉字符串中的非数字publicstaticstringRemoveNotNumber(stringkey){r... 阅读全文
posted @ 2015-03-12 17:12 94cool 阅读(25820) 评论(0) 推荐(6) 编辑
摘要:from:http://www.cnblogs.com/icyJ/archive/2013/02/20/HasFlag.html在权限的管理中,常常会出现一个权限包含的现象。例如,有三种基本权限:职员A、职员B、职员C.在此基础上,有经理权限,它包括A和B两种权限;还有老板权限,包含A/B/C三种... 阅读全文
posted @ 2015-02-27 11:57 94cool 阅读(630) 评论(0) 推荐(0) 编辑
摘要:from:http://www.cnblogs.com/jobin/articles/1152213.html有些表达式在报表中很常用。其中包括更改报表中的数据外观的表达式、计算总数的表达式和更改报表项属性的表达式。本主题介绍了报表中可用于常见任务的一些表达式。报表中的许多表达式都包含函数。您可以编... 阅读全文
posted @ 2015-02-10 14:17 94cool 阅读(1327) 评论(0) 推荐(0) 编辑
摘要:from:http://www.cnblogs.com/duanshuiliu/archive/2012/07/13/2589862.html使用ReportView控件可以显示远端Report service的报表,也可以处理生成本地报表,用法也比较简单,下面列举一下简单的步骤。首先使用Repo... 阅读全文
posted @ 2015-02-10 14:16 94cool 阅读(486) 评论(0) 推荐(0) 编辑
摘要:1代码2#regionpublicstatic3///4///获取指定ReportViewer总物理页数5///guog2009-05-06新增6///7///ReportViewer控件8///总物理页数,默认值为09publicstaticintGetTotalPage(ReportViewer... 阅读全文
posted @ 2015-02-06 13:30 94cool 阅读(744) 评论(0) 推荐(0) 编辑
摘要:LINQ 获取当前数组中出现次数最多的元素1Lista=newList();2a.Add("1");3a.Add("1");4a.Add("1");5a.Add("2");6a.Add("2");7a.Add("3");8a.Add("4");9a.Add("4");10a.Add("4");11a... 阅读全文
posted @ 2015-02-06 09:14 94cool 阅读(457) 评论(0) 推荐(0) 编辑
摘要:private void dataGridView1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Tab && dataGridView1.CurrentCell.ColumnIndex == 1)... 阅读全文
posted @ 2015-01-28 10:58 94cool 阅读(7231) 评论(0) 推荐(1) 编辑
摘要:from:http://stackoverflow.com/questions/3142495/deserialize-json-into-c-sharp-dynamic-objectIf you are happy to have a dependency upon theSystem.Web.... 阅读全文
posted @ 2015-01-15 08:35 94cool 阅读(555) 评论(0) 推荐(0) 编辑
摘要:context.Response.ContentType=encode;using(StreamWriterwriter=newStreamWriter(context.Response.OutputStream,UTF8)){writer.Write(str);}上面代码常会报错:Bytes to... 阅读全文
posted @ 2014-10-14 17:09 94cool 阅读(1570) 评论(0) 推荐(0) 编辑
摘要:from :http://www.cnblogs.com/WonKerr/archive/2010/01/01/Coord_Transform.html在GIS中,当你拿到一个图层的地理坐标后,如果需要绘制到屏幕上,那么不可避免的需要在地理坐标和屏幕坐标之间进行转换,转换的方法相信每一个做GIS的都... 阅读全文
posted @ 2014-08-19 16:36 94cool 阅读(3387) 评论(0) 推荐(1) 编辑
摘要:public partial class UCInfo : UserControl { public UCInfo() { InitializeComponent(); } ManualRese... 阅读全文
posted @ 2014-08-11 09:58 94cool 阅读(1579) 评论(0) 推荐(0) 编辑
摘要:from:http://hi.baidu.com/sungaoyong/item/0c4584d25873f131e3108f05///刘泽军java版本的极坐标投影c#版本的移植using System;using System.Collections.Generic;using System.L... 阅读全文
posted @ 2014-05-23 12:01 94cool 阅读(512) 评论(0) 推荐(0) 编辑
摘要:/// /// 把号码用BCD进行压缩编码。 /// /// The num8 bit byte. /// public static byte[] ByteArrayToBCD(byte[] Num8BitByte)//8位的ascii码 { byte[] Num4bitByte = new byte[8]; Num4bitByte = BitConverter.GetBytes(0xffffffffffffffff); for (int i = 0; i /// BCDs to string. /// /// The BCD num. /// public static stri... 阅读全文
posted @ 2014-03-06 11:42 94cool 阅读(2088) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示