• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
三人行者,必有我师焉
为了自己的理想,我愿意付出全部的力量
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 2 3 下一页
2008年10月14日
c# 文件传输
摘要: 今天终于把文件传输问题给研究明白了,特发此代码用来帮助正在学习的人们。 send : Code Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->stringpath="E:\\c#\\convey_file\\convey_fil... 阅读全文
posted @ 2008-10-14 00:25 wsy6634 阅读(6061) 评论(3) 推荐(0)
2008年10月13日
socket传文件
摘要: private string path = "F:\\SmartMovie.EXE"; //要发送的文件 private Socket s; private void listen() { string ip = "1... 阅读全文
posted @ 2008-10-13 19:37 wsy6634 阅读(2139) 评论(1) 推荐(1)
2008年10月12日
treeview的节点的展开和收缩
摘要: public void Expandnodes(Microsoft.Web.UI.WebControls.TreeNode node,bool Expand) { foreach(Microsoft.Web.UI.WebControls.TreeNode n in node.Nodes) { if(n.Nodes.Count>0) { n.Expanded = Ex... 阅读全文
posted @ 2008-10-12 19:42 wsy6634 阅读(879) 评论(0) 推荐(0)
c# 的messageBox的各种用法
摘要: MessageBox("消息内容", "返回值 确定1",MessageBoxButtons.OK,MessageBoxIcon.Question); MessageBox("消息内容",, "返回值 确定1 取消2",MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk); MessageBox("消息内容", "返回值 终止3 重试4 忽略5... 阅读全文
posted @ 2008-10-12 18:24 wsy6634 阅读(6774) 评论(0) 推荐(0)
2008年10月6日
c#和UDP SOCKET广播
摘要: server: Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.Dgram,ProtocolType.Udp); IPEndPoint iep1 = new IPEndPoint(IPAddress.Broadcast, 9050);//255.255.255.255 ... 阅读全文
posted @ 2008-10-06 22:57 wsy6634 阅读(3213) 评论(0) 推荐(0)
2008年10月5日
FSO(FileSystemObject)
摘要: FSO(FileSystemObject)是微软ASP的一个对文件操作的控件,该控件可以对服务器进行读写、新建、修改、删除目录以及文件的操作。是ASP编程中非常有用的一个控件。 但是因为权限控制的问题,很多虚拟主机服务器的FSO反而成为这台服务器的一个公开的后门,因为客户可以在自己的ASP网页里面直接就对该控件编程,从而控制该服务器甚至删除服务器上的文件。 因此不少业界的虚... 阅读全文
posted @ 2008-10-05 14:48 wsy6634 阅读(401) 评论(0) 推荐(0)
c#与com
摘要: Code Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->1usingSystem; 2usingSystem.Net; 3usingSystem.Net.Mail; 4usingSystem.Text;... 阅读全文
posted @ 2008-10-05 13:49 wsy6634 阅读(405) 评论(0) 推荐(0)
2008年10月4日
datagrid
摘要: DataGrid: aspx中 cs中 co.con(); ... 阅读全文
posted @ 2008-10-04 22:11 wsy6634 阅读(192) 评论(0) 推荐(0)
ASP.NET连接SQL和ACCESS的方法
摘要: SQL: using System.Data.SqlClient; string sql = "server=.;uid=sa;pwd=;database=tablename;"; ACCESS: using System.Data.OleDb; string sql = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=" + HttpRuntime... 阅读全文
posted @ 2008-10-04 21:53 wsy6634 阅读(203) 评论(0) 推荐(0)
TcpListen和TcpClient的例子
摘要: 服务端: SERVER SEND RECEIVE TcpListener tl = new TcpListener(IPAddress.Any, 9999); Socket s = tl.AcceptSocket(); byte[] bt = new byte[1024]; int count = s.Receive(bt)... 阅读全文
posted @ 2008-10-04 21:31 wsy6634 阅读(1094) 评论(0) 推荐(0)
上一页 1 2 3 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3