摘要: 其中 C#里 图片和BASE64互转的方法, 参见我的上一篇博客。 阅读全文
posted @ 2016-11-04 22:51 杨mon 阅读(675) 评论(0) 推荐(0)
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Drawing; 4 using System.IO; 5 using System.Linq; 6 using System.Web; 7 using System.Drawing.Imaging; 8 // 博客园 aC#Coder 整理 ... 阅读全文
posted @ 2016-11-04 22:47 杨mon 阅读(4846) 评论(0) 推荐(0)
摘要: 最近想搞搞JS模块化, 读到了园子里的一篇好文: http://www.cnblogs.com/lvdabao/p/js-modules-develop.html 注意 $el , test() 的使用方式不会污染全局对象. 这个文件和我sea.js放一个地方了, 放哪都可以, 引用时注意一下路径. 阅读全文
posted @ 2016-03-22 14:58 杨mon 阅读(310) 评论(0) 推荐(0)
摘要: 1) 方案一, 使用Web Service 基础功能没问题, 只是在连接https (ssh) 网站时, 需要针对https进行开发 (即http 和https 生成两套接口, 不太容易统一 ). 后来改为使用web页面交互(实质是.ashx) 结果也遇到了不少问题. WebBrowser 其实是对 阅读全文
posted @ 2016-03-16 11:02 杨mon 阅读(2260) 评论(0) 推荐(0)
摘要: . I have added two obejcts data source to Report Viewer.2. in RDLC i have created two tables and in table Properties set PageBreakAtEnd ="True"这样每个Table生成到单独的工作表中.http://forums.asp.net/t/1816764.asp... 阅读全文
posted @ 2016-03-09 08:22 杨mon 阅读(877) 评论(0) 推荐(0)
摘要: public static IApplicationEnvironment GetApplication(this RazorPage page) { var ae = page.Context.RequestServices.GetService(typeof(IApplicationEnvironment)) as IApplicationE... 阅读全文
posted @ 2016-02-25 15:55 杨mon 阅读(2337) 评论(1) 推荐(0)
摘要: 1. Startup.cs 类的 Configure方法中, 加入Area路由设置代码: //app.UseMvcWithDefaultRoute(); app.UseMvc(routes=> { // add the new route here. routes.MapRoute(name: ... 阅读全文
posted @ 2016-02-24 10:20 杨mon 阅读(1461) 评论(0) 推荐(0)
摘要: 1、 Startup.cs中修改默认的验证设置 //app.UseIdentity(); app.UseCookieAuthentication(options => { //options.AuthenticationScheme = CookieAuthenticationDefaults.AuthenticationS... 阅读全文
posted @ 2016-01-18 10:53 杨mon 阅读(1513) 评论(0) 推荐(0)
摘要: 1、Split SQL Server 2008 新语法: DECLARE @str VARCHAR(MAX) SET @str = REPLACE(@teeIDs, ',', '''),(''') SET @str = 'SELECT * FROM (VALUES(''' + @str + ''')) AS V(A)' EXEC (@str)据说这个SQL语法是SQ... 阅读全文
posted @ 2016-01-14 08:10 杨mon 阅读(9243) 评论(0) 推荐(0)
摘要: 基本类型像基本的JavaScript一样,TypeScript支持numbers, strings, structures, boolean等基本类型,而扩展的enum等类型,为编程提供了更多帮助。Boolean这是最简单的类型var isDone: boolean = false;Number在J... 阅读全文
posted @ 2016-01-10 10:29 杨mon 阅读(276) 评论(0) 推荐(0)