摘要: 最近遇到很头疼的问题,安装到服务器的Windows Service卸载的时候出错了,结果在服务列表中就一直驻留,并且系统进程一直在运行,怎么都杀不掉。 最后终于找到办法了: 1.常规做法,批处理命令卸载 Net Stop ServiceNamesc delete ServiceNamepause 2 阅读全文
posted @ 2019-04-25 17:11 天空之云 阅读(11278) 评论(0) 推荐(1) 编辑
摘要: 控制器上修改增加公用一个页面时根据id进行判断修改添加 根据id查询修改的数据 方法一:控制器中var class=db.class.find(ID);return view(class); view中EF自带的输入框 或者自定义input 方法二: 保存时都可直接定义model获取值 阅读全文
posted @ 2018-11-20 16:38 天空之云 阅读(1000) 评论(0) 推荐(0) 编辑
摘要: @for (int a = 1; a @a } @*强制分页*@ @for (int i = 1; i @for (int i = 1; i } 阅读全文
posted @ 2018-08-16 09:19 天空之云 阅读(4436) 评论(0) 推荐(0) 编辑
摘要: 首先在head里面加入下面一段js代码: <script language="javascript"> function preview(oper) { if (oper < 10) { bdhtml = window.document.body.innerHTML; //获取当前页的html代码 阅读全文
posted @ 2018-08-15 18:07 天空之云 阅读(3101) 评论(0) 推荐(0) 编辑
摘要: private System.Reflection.PropertyInfo[] GetPropertyInfoArray() { System.Reflection.PropertyInfo[] props = null; try { Type type = typeof(Temp_Check); 阅读全文
posted @ 2017-07-28 15:01 天空之云 阅读(576) 评论(0) 推荐(0) 编辑
摘要: 1.在"开始"->"运行"中输入dcomcnfg.exe启动"组件服务" 2:依次双击"组件服务"->"计算机"->"我的电脑"->"DCOM配置" 3:在"DCOM配置"中找到"Microsoft Word 应用程序"或 ,在它上面点击右键,然后点击"属性",弹出"Microsoft Word 应 阅读全文
posted @ 2017-07-25 10:59 天空之云 阅读(180) 评论(0) 推荐(0) 编辑
摘要: private static Regex RegNumber = new Regex("^[0-9]+$"); private static Regex RegNumberSign = new Regex("^[+-]?[0-9]+$"); private static Regex RegDecimal = new Regex("^[0-9]+[.]?[0-9]+$"); ... 阅读全文
posted @ 2017-04-12 09:57 天空之云 阅读(11021) 评论(0) 推荐(0) 编辑