会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
霸气庚心
博客园
首页
新随笔
联系
订阅
管理
2015年12月14日
为数据前面加上货币符号
摘要: /// /// 商品价格格式 /// /// /// /// public static string GetPrice(this decimal price, int? n = 0) { ...
阅读全文
posted @ 2015-12-14 09:55 霸气庚心
阅读(224)
评论(0)
推荐(0)
2015年11月13日
HttpCache缓存扩展方法
摘要: using System;using System.Collections;using System.Configuration;using System.Web;using System.Web.Caching;namespace Meb.Common.Extensions{ //缓存写入 ...
阅读全文
posted @ 2015-11-13 09:25 霸气庚心
阅读(278)
评论(0)
推荐(0)
2015年11月11日
数据量大的数据转换成jason并显示在页面上
摘要: 代码列子: public ActionResult FindUserByUserId(SysMessageDTO model) { CustomResultMsg customResult = new CustomResultMsg() { ResultValue =...
阅读全文
posted @ 2015-11-11 17:10 霸气庚心
阅读(318)
评论(0)
推荐(0)
2015年10月28日
图片压缩以及解析方法
摘要: 图片压缩1.调用:var result = PictureService.Upload(System.Web.HttpContext.Current.Request, 20);2.定义:public static FileResult Upload(HttpRequest request, int ...
阅读全文
posted @ 2015-10-28 10:25 霸气庚心
阅读(364)
评论(0)
推荐(0)
2015年3月17日
.net 面试基础题
摘要: Reference Link:http://www.yjbys.com/bbs/326026.htmlconst关键字用来声明编译时常量,readonly用来声明运行时常量密封类不能同时为抽象类可以覆写私有的虚方法吗? 答:不可以,甚至子类中无法访问父类中的私有方法base 表示当前对象基类的实例(...
阅读全文
posted @ 2015-03-17 23:59 霸气庚心
阅读(226)
评论(0)
推荐(0)
2015年3月12日
Openxml 笔记
摘要: 用openxml 生成Excel:private void GenerateExcelUsingOpenxml(DataTable dataTable, string GeneratePath) { using (var workbook = SpreadsheetDocument.Create(G...
阅读全文
posted @ 2015-03-12 17:28 霸气庚心
阅读(1110)
评论(0)
推荐(0)
Create a new Windows service on windows server2012
摘要: netsh http add iplisten ipaddress=0.0.0.0:15901sc.exe create "FPPService" binPath= "D:\apps\apps_srv\FPP\FPPService.exe" displayname= "FPPService" dep...
阅读全文
posted @ 2015-03-12 14:42 霸气庚心
阅读(202)
评论(0)
推荐(0)
2015年2月5日
Sql Cursor example
摘要: USE [EUC]GO/****** Object: StoredProcedure [dbo].[SP_SME_QueryAuditLog] Script Date: 02/05/2015 15:54:16 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFI...
阅读全文
posted @ 2015-02-05 15:58 霸气庚心
阅读(213)
评论(0)
推荐(0)
2015年1月20日
Selected by page stored procedure-分页
只有注册用户登录后才能阅读该文。
阅读全文
posted @ 2015-01-20 17:58 霸气庚心
阅读(1)
评论(0)
推荐(0)
Download files from server using byte
只有注册用户登录后才能阅读该文。
阅读全文
posted @ 2015-01-20 17:54 霸气庚心
阅读(1)
评论(0)
推荐(0)
下一页
公告