随笔 - 36  文章 - 0  评论 - 80  阅读 - 53万
05 2011 档案
BS网站与Winform窗体的数据交互(WebService实现)
摘要:测试项目图片:BS网站包括一个WebService1.asmx web服务 和webForm1.aspx页面namespace WebApplication_Web{ /// <summary> /// WebService1 的摘要说明 /// </summary> [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxIte 阅读全文
posted @ 2011-05-31 17:22 xiaowei0705 阅读(3395) 评论(2) 推荐(2) 编辑
javaScript中两个等于号和三个等于号之间的区别
摘要:一言以蔽之:==先转换类型再比较,===先判断类型,如果不是同一类型直接为false。===表示恒等于,比较的两边要绝对的相同运行体会一下以下的代码就会清楚了:alert(0 == ""); // truealert(0 == false); // truealert("" == false); // truealert(0 === ""); // falsealert(0 === false); // falsealert("" === false); // false 阅读全文
posted @ 2011-05-31 16:29 xiaowei0705 阅读(1827) 评论(6) 推荐(1) 编辑
C#第三方zip解压压缩工具,带事例源码
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using ICSharpCode.SharpZipLib.Zip; //开源工具,可免费下载:下载地址://http://files.cnblogs.com/xiaowei0705/SharpZipLib_0860_Bin.zipusing System.IO;namespace Package{ class Class1 { #region 加压解压方法 /// <summary> /// 功能:压缩文件(暂时只压缩 阅读全文
posted @ 2011-05-16 16:35 xiaowei0705 阅读(3173) 评论(1) 推荐(1) 编辑
C#调用rar.exe解压一个rar文件
摘要://取得系统临时目录string sysTempDir = Path.GetTempPath();//要解压的文件路径,请自行设置string rarFilePath = @"d:\test.rar";//确定要解压到的目录,是系统临时文件夹下,与原压缩文件同名的目录里string unrarDestPath = Path.Combine(sysTempDir, Path.GetFileNameWithoutExtension(rarFilePath));//组合出需要shell的完整格式string shellArguments = string.Format(" 阅读全文
posted @ 2011-05-16 16:29 xiaowei0705 阅读(1489) 评论(3) 推荐(2) 编辑
网页里面嵌入视频代码
摘要:1、 现在最常见的是页面视频Flv,wmv格式的 现在flv几乎不需要客户端安装软件,浏览器支持这种格式,对于服务器IIS需要设置一下,tomcat不用配置就可以支持flv,wmv很受用户机器的限制,如果Windows Media Player没有安装的话不能播放页面代码如下: <div align="center"> <object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id="MediaPlayer1" width="550" 阅读全文
posted @ 2011-05-13 18:19 xiaowei0705 阅读(19358) 评论(0) 推荐(1) 编辑
在WinForm应用程序中嵌入WPF控件
摘要:我们知道,在WPF界面上添加WinForm的控件需要使用WindowsFormHost类。而在WinForm界面上添加WPF控件该如何做呢?有没有类似的类呢?明显是有的,ElementHost就是为了在WinForm应用程序中嵌入WPF元素而定义的。它继承自System.Windows.Forms.Control,是一个WinForm控件,但它知道如何显示WPF内容。接下来演示如何使用ElementHost来显示一个WPF控件——Button,并与WinForm中Button的显示作个简单的对比(xp环境)。1. 创建一个标准的WinForm工程,从工具栏中找到“WPF Interoperab 阅读全文
posted @ 2011-05-12 15:37 xiaowei0705 阅读(2040) 评论(0) 推荐(0) 编辑
C#中怎么用代码来实现查看局域网的电脑和IP
摘要:1、微软社区上介绍了使用Active Directory 来遍历局域网利用DirectoryEntry组件来查看网络网址:http://www.microsoft.com/china/communITy/program/originalarticles/techdoc/DirectoryEntry.mspxprivate void EnumComputers(){ using(DirectoryEntry root = new DirectoryEntry("WinNT:")) { foreach(DirectoryEntry domain in root.Children 阅读全文
posted @ 2011-05-05 17:12 xiaowei0705 阅读(5098) 评论(0) 推荐(2) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示