• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • YouClaw
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
bohelan
博客园    首页    新随笔    联系   管理    订阅  订阅

随笔分类 -  c#

C#实现ADSL自动拨号 RAS技术

摘要:using System;using System.Runtime.InteropServices;public struct RASCONN{ public int dwSize; public IntPtr hrasconn; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 257)] public string szEntryName; [Ma... 阅读全文
posted @ 2010-01-13 16:15 bohelan 阅读(1042) 评论(0) 推荐(0)
c# 发送邮件

摘要:using System;using System.Collections.Generic;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Net.Mail;using System.Net;public partial class _Default : System.Web.UI.... 阅读全文
posted @ 2010-01-12 18:07 bohelan 阅读(150) 评论(0) 推荐(0)
.NET二进制图片存储与读取的常见方法

摘要:.NET二进制图片存储与读取的常见方法有以下几种:.NET二进制图片存储:以二进制的形式存储图片时,要把数据库中的字段设置为Image数据类型(SQL Server),存储的数据是Byte[].1.参数是图片路径:返回Byte[]类型: publicbyte[]GetPictureData(stringimagepath) { /**/////根据图片文件的路径使用文件流打开,并保存为byte[]... 阅读全文
posted @ 2009-12-24 17:30 bohelan 阅读(693) 评论(1) 推荐(0)

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3