摘要: 1、引用JS: <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=87be68605271c5e4cfe712787041be0a"></script> 2、HTML: 东经: <input name= 阅读全文
posted @ 2014-12-25 11:35 0611163 阅读(832) 评论(0) 推荐(0) 编辑
摘要: 定义一个类:using System.Data.SQLite;namespace DAL{ /// /// SQLite中文排序 /// [SQLiteFunction(FuncType = FunctionType.Collation, Name = "PinYin")... 阅读全文
posted @ 2014-12-23 17:22 0611163 阅读(904) 评论(0) 推荐(0) 编辑
摘要: EasyUI的datagrid分页前台代码:View Code后台:public ActionResult TouBiZhaoLingSearch(string startDate, string endDate, int page, int rows){ int totalCount; ... 阅读全文
posted @ 2014-12-20 21:07 0611163 阅读(436) 评论(0) 推荐(0) 编辑
摘要: HTML代码: 这里是表单内容View CodeJS代码:若保存成功,后台返回{"ok":true};若保存失败,后台返回{"ok":false, "msg":"错误信息"}function save() { $("#frm").submit(); $("#fra").one("l... 阅读全文
posted @ 2014-12-20 21:00 0611163 阅读(466) 评论(6) 推荐(0) 编辑
摘要: 通过COM1发送数据,COM2接收数据。当COM2接收完本次发送的数据后,向COM1发送信息通知COM1本次数据已发完,COM1接到通知后,再发下一段数据。这样可以确保每次发送的数据都可以被正确接收。代码:using System;using System.Collections.Generic;u... 阅读全文
posted @ 2014-12-01 12:58 0611163 阅读(970) 评论(1) 推荐(1) 编辑
摘要: 代码:using System;using System.Collections.Generic;using System.Linq;using System.Windows.Forms;namespace MyWebBrowser{ static class Program { ... 阅读全文
posted @ 2014-11-28 14:12 0611163 阅读(2044) 评论(0) 推荐(2) 编辑
摘要: JS代码:View CodeC#代码:string html = "文字cc href=\"www.baidu.com\" cbas cchref 1";Regex reg = new Regex("]+[\\s]+)href=(\"(?[^\"']*)\"|'(?[^\"']*)')[^]*>"... 阅读全文
posted @ 2014-11-26 14:50 0611163 阅读(9781) 评论(0) 推荐(0) 编辑
摘要: 一、控制面板—>程序和功能—>打开或关闭Windows功能 把相关的功能勾上,点“确定”二、新建一个网站,配置ISAPI和CGI限制、处理程序映射三、CGI控制台应用程序代码:using System;using System.Collections.Generic;using System.Te... 阅读全文
posted @ 2014-11-25 17:26 0611163 阅读(1666) 评论(0) 推荐(1) 编辑
摘要: 代码:/// /// Http上传文件/// public static string HttpUploadFile(string url, string path){ // 设置参数 HttpWebRequest request = WebRequest.Create(url) as ... 阅读全文
posted @ 2014-11-03 14:47 0611163 阅读(1777) 评论(1) 推荐(1) 编辑
摘要: 代码:/// /// Http下载文件/// public static string HttpDownloadFile(string url, string path){ // 设置参数 HttpWebRequest request = WebRequest.Create(url) a... 阅读全文
posted @ 2014-11-03 14:43 0611163 阅读(729) 评论(1) 推荐(2) 编辑