2015年1月20日
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Net.NetworkInformation;using System.ServiceModel.Descrip... 阅读全文
posted @ 2015-01-20 13:19 harrell 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 方式一:var rte = sender as RichTextEdit;control = rte.Controls[0] as RichEditControl;方式二:PropertyInfo myPropertyInfo1 = rte.GetType().GetProperty("InnerC... 阅读全文
posted @ 2015-01-20 13:17 harrell 阅读(955) 评论(0) 推荐(0) 编辑
摘要: using( RichEditControl selector = new RichEditControl() {RtfText = richTextFromHtml } ) {DocumentRange rangeBlockOne = selector.Document.CreateRange( ... 阅读全文
posted @ 2015-01-20 10:36 harrell 阅读(330) 评论(0) 推荐(0) 编辑
  2015年1月16日
摘要: /// /// html转换为纯文本 /// /// /// private static string HtmlToPlainText(string source) { string... 阅读全文
posted @ 2015-01-16 13:39 harrell 阅读(224) 评论(0) 推荐(0) 编辑
  2014年12月4日
摘要: http://db.grussell.org 阅读全文
posted @ 2014-12-04 17:26 harrell 阅读(879) 评论(0) 推荐(0) 编辑
  2014年6月15日
摘要: 第一种@using (Html.BeginForm("ProdPromotionEdit", "Product", FormMethod.Post, new { onsubmit = "return check()" }))第二种第三种jquery$("#xxxform").submit(funct... 阅读全文
posted @ 2014-06-15 20:17 harrell 阅读(262) 评论(0) 推荐(0) 编辑
  2014年6月10日
摘要: 有时你需要远程管理或运行一批机器,但是按要求你没有权限或者不能安装客户端,下面的批处理可能帮上你的忙,将下方代码保存为批处理,并创建Clients.txt,存放的是以回车分隔的IP@echo offsetlocal enabledelayedexpansionSet UP=/U username /... 阅读全文
posted @ 2014-06-10 11:03 harrell 阅读(787) 评论(0) 推荐(0) 编辑
  2014年5月24日
摘要: 很抱歉这几天没有时间,有人问我怎么绑定域名的问题也没有答复,下面进入正题,惊闻ASP.Net要开源了,难道.Net春天要来了?不废话,上回书说,部署完毕ASP.Net网站后,直接访问不能访问(嗯,众所周知的原因),如果有一个闲置域名的话就可以绑定很方便的访问,Openshift提供的绑定方法仅允许你... 阅读全文
posted @ 2014-05-24 11:06 harrell 阅读(3053) 评论(6) 推荐(5) 编辑
  2014年5月15日
摘要: 进入:控制面板-卸载程序-打开或关闭Windows功能如果访问任何不存在页面或页面出错时空白:Internet信息服务-万维网服务-常见HTTP功能-HTTP错误打勾如果访问任何存在的页面时出现空白:Internet信息服务-万维网服务-常见HTTP功能-静态内容打勾然后单击“确定”即可。 阅读全文
posted @ 2014-05-15 12:49 harrell 阅读(406) 评论(0) 推荐(0) 编辑
  2014年5月12日
摘要: 接上回书,创建应用后,我们如何将自己的ASP.Net部署到应用空间呢,这里用WinSCP的SFTP协议进行上传和下载上传ASP.net程序下载WinSCP,并打开PuTTYGen点击Generate,在窗体空白处随机缓慢移动鼠标直到进度条走完,生成公钥和私钥保存私钥为ppk文件,并复制公钥,在此下方... 阅读全文
posted @ 2014-05-12 08:27 harrell 阅读(2918) 评论(33) 推荐(6) 编辑