随笔分类 -  代码骗段

摘要:http://dev.mjxy.cn/a-How-to-receive-the-return-value-stored-procedure.aspxASP.NET 里接收存储过程的返回值,需要定义参数. 而不是 ExecuteNoQuery的结果.using (SqlConnection cn = new SqlConnection(this.ConnectionString)) { SqlCommand cmd = new SqlCommand("Get4LayerIsA", cn); cmd.CommandType = CommandType.StoredProcedu 阅读全文
posted @ 2011-07-14 09:47 敏捷学院 阅读(449) 评论(0) 推荐(0)
摘要:转自:http://dev.mjxy.cn/a-166.aspxprivate Image ScaleImage(Image source, int MaxWidth, int MaxHeight){ float MaxRatio = MaxWidth / (float) MaxHeight; float ImgRatio = source.Width / (float) source.Height; if (source.Width > MaxWidth) return new Bitmap(source, new Size(MaxWidth, (int) Math.Round(Max 阅读全文
posted @ 2011-07-08 15:32 敏捷学院 阅读(161) 评论(0) 推荐(0)
摘要:桌球台球瞄准器下载地址: 桌球台球瞄准器 阅读全文
posted @ 2011-06-22 00:13 敏捷学院 阅读(911) 评论(0) 推荐(0)
摘要:<<WpfQSearchExcel.rar>> 获取一个简体中文字的拼音首字母 static public string getSpell(string cn) { byte[] arrCN = Encoding.Default.GetBytes(cn); if (arrCN.Length > 1) { int area = (short)arrCN[0]; int pos = (short)arrCN[1]; int code = (area << 8) + pos; int[] areacode = { 45217, 45253, 45761, 4 阅读全文
posted @ 2011-03-27 15:10 敏捷学院 阅读(508) 评论(0) 推荐(0)
摘要:棋牌游戏服务器端+Silverlight客户端演练可能掌握的知识: dotNET Socket 游戏协议设计 游戏逻辑 调试输出 Silverlight客户端的连接与调试 Flash客户端的连接与调试能够了解服务/器客户端开发原理。服务器端基本功能已经差不多全乎了,客户端没做仅实现了登录测试。我就走到这里了,接下来就靠你耗费很多精力去实现吧。代码视图 游戏逻辑Silverlight客户端连接调试Flash客户端连接调试ctrl+shift+8 hide or display debug's windows。服务器端运行状态扑克发牌演练(单独的Flash Code)Download So 阅读全文
posted @ 2011-03-27 02:22 敏捷学院 阅读(963) 评论(1) 推荐(2)
摘要:使用演练代码可以了解以下内容: ASP.NET MVC2 EntityFramework Castle 邮件验证 图片上传 路由监视 单元测试数据翻页 分层架构 ....... 等 ^_^ 其实都是一些开发常用居家过日子基础功能啊。阅读代码是掌握新技术的就快捷径。由于代码写的时间比较早了,EntityFramework已经经过数次改版,有些概念可能已经发生变化。也许程序执行的时候会发生爆炸!请带好安全帽!功能介绍: 实现了用户根据分类发布房屋信息,系统根据用户的邮箱来判断是否是已经存在的用户。每条信息发送后会给发信人的邮箱发送验证代码。验证过的信息不会显示问号(表示信息未经过验证)。主界面:列 阅读全文
posted @ 2011-03-25 20:19 敏捷学院 阅读(688) 评论(1) 推荐(0)
摘要:自定义节的配置文件 myCustom.config 如下: <?xml version="1.0" encoding="utf-8"?><configuration> <configSections> <section name="myCustomSection" type="CustomConfig.MyCustomSection, CustomConfig"/> </configSectio... 阅读全文
posted @ 2011-03-24 23:40 敏捷学院 阅读(317) 评论(0) 推荐(0)
摘要: 创建WpfApplication项目Mui_lang,窗口如"运行"的对话框。 Xaml 文件如下: <Window x:Class="Mui_lang.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/200... 阅读全文
posted @ 2011-03-24 23:32 敏捷学院 阅读(706) 评论(2) 推荐(1)
摘要:介绍使用WatiN模拟网页操作,可以实现网站的自动登录发帖等等....自个儿联想吧!背景知识 Watin是一个面向.net的Web自动化测试开源项目。想要了解更多的知道参考官方网站 http://watin.org/代码 1 //自动登录QQ微博发贴 2 WatiN.Core.IE ie = new WatiN.Core.IE("http://www.qq.com"); 3 ie.ShowWindow(WatiN.Core.Native.Windows.NativeMethods.WindowShowStyle.Maximize); 4 //单击登录div 5 ie.Div 阅读全文
posted @ 2011-03-24 13:08 敏捷学院 阅读(690) 评论(0) 推荐(0)