博客园  :: 联系 :: 管理
上一页 1 ··· 6 7 8 9 10

2006年6月26日

摘要: 判断C#中的字符串是否是数字,如果是转换成int类型1.通过正则表达式(可以判断正数和负数)public int IsNumeric(string str){ int i;if(str != null && System.Text.RegularExpressions.Regex.IsMatch(str,@"^-?\d+$"))i = int.Parse(str);elsei = -1;retur... 阅读全文

posted @ 2006-06-26 14:47 独孤雁 阅读(1973) 评论(0) 推荐(0) 编辑

摘要: HTTP协议用于在Internet上发送和接收消息。HTTP协议是一种请求-应答式的协议 ——客户端发送一个请求,服务器返回该请求的应答,所有的请求与应答都是HTTP包。HTTP协议使用可靠的TCP连接,默认端口是80。HTTP的第一 个版本是HTTP/0.9,后来发展到了HTTP/1.0,现在最新的版本是HTTP/1.1。HTTP/1.1由RFC 2616 定义。在HTTP 中,Client/... 阅读全文

posted @ 2006-06-26 00:29 独孤雁 阅读(681) 评论(0) 推荐(0) 编辑

2006年6月22日

摘要: 打开文件或目录using System.Diagnostics;Process.Start(OpenFullPath);using System.Diagnostics;Process ps=new Process();ps.StartInfo.FileName=@"E:\CSharp3\QXKMeTone\bin\Debug\cardtest.exe";ps.Start();带参数Process... 阅读全文

posted @ 2006-06-22 11:38 独孤雁 阅读(200) 评论(0) 推荐(0) 编辑

摘要: 打开Visual Studio.Net,系统报告“automation服务器不能创建对象”错误。解决:开始--运行--regsvr32 scrrun.dll 阅读全文

posted @ 2006-06-22 10:35 独孤雁 阅读(197) 评论(0) 推荐(0) 编辑

上一页 1 ··· 6 7 8 9 10