会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
程序员老苏
666
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
22
23
24
25
26
27
28
29
下一页
2014年12月23日
SQLite中文排序
摘要: 定义一个类:using System.Data.SQLite;namespace DAL{ /// /// SQLite中文排序 /// [SQLiteFunction(FuncType = FunctionType.Collation, Name = "PinYin")...
阅读全文
posted @ 2014-12-23 17:22 0611163
阅读(925)
评论(0)
推荐(0)
2014年12月20日
EasyUI的datagrid分页
摘要: EasyUI的datagrid分页前台代码:View Code后台:public ActionResult TouBiZhaoLingSearch(string startDate, string endDate, int page, int rows){ int totalCount; ...
阅读全文
posted @ 2014-12-20 21:07 0611163
阅读(441)
评论(0)
推荐(0)
无刷新提交表单(非Ajax实现)
摘要: HTML代码: 这里是表单内容View CodeJS代码:若保存成功,后台返回{"ok":true};若保存失败,后台返回{"ok":false, "msg":"错误信息"}function save() { $("#frm").submit(); $("#fra").one("l...
阅读全文
posted @ 2014-12-20 21:00 0611163
阅读(475)
评论(6)
推荐(0)
2014年12月1日
C#串口通信
摘要: 通过COM1发送数据,COM2接收数据。当COM2接收完本次发送的数据后,向COM1发送信息通知COM1本次数据已发完,COM1接到通知后,再发下一段数据。这样可以确保每次发送的数据都可以被正确接收。代码:using System;using System.Collections.Generic;u...
阅读全文
posted @ 2014-12-01 12:58 0611163
阅读(992)
评论(1)
推荐(1)
2014年11月28日
C#以管理员身份运行程序
摘要: 代码: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
阅读(2093)
评论(0)
推荐(2)
2014年11月26日
正则表达式匹配a标签的href
摘要: 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
阅读(9808)
评论(0)
推荐(0)
2014年11月25日
C# CGI程序
摘要: 一、控制面板—>程序和功能—>打开或关闭Windows功能 把相关的功能勾上,点“确定”二、新建一个网站,配置ISAPI和CGI限制、处理程序映射三、CGI控制台应用程序代码:using System;using System.Collections.Generic;using System.Te...
阅读全文
posted @ 2014-11-25 17:26 0611163
阅读(1706)
评论(0)
推荐(1)
2014年11月3日
C# HTTP上传文件
摘要: 代码:/// /// Http上传文件/// public static string HttpUploadFile(string url, string path){ // 设置参数 HttpWebRequest request = WebRequest.Create(url) as ...
阅读全文
posted @ 2014-11-03 14:47 0611163
阅读(1801)
评论(1)
推荐(1)
C# HTTP下载文件
摘要: 代码:/// /// Http下载文件/// public static string HttpDownloadFile(string url, string path){ // 设置参数 HttpWebRequest request = WebRequest.Create(url) a...
阅读全文
posted @ 2014-11-03 14:43 0611163
阅读(759)
评论(1)
推荐(2)
2014年10月28日
C#生成二维码
摘要: 首先引用ThoughtWorks.QRCode.dll代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Drawing;using ThoughtWork...
阅读全文
posted @ 2014-10-28 11:37 0611163
阅读(670)
评论(0)
推荐(0)
上一页
1
···
22
23
24
25
26
27
28
29
下一页
公告