C#、WinForm、ASP.NET - SQLHelper.cs】的更多相关文章

SQLHelper.cs using System; using System.Data; using System.Configuration; using System.Data.SqlClient; namespace DAL { public class SQLHelper { #region 私有字段 //获取连接字符串 private static string ConString = ConfigurationManager.ConnectionStrings["ConString…
 MD5值概念解释: 转载自:http://free0007.iteye.com/blog/2047163 所 谓MD5,即"Message-Digest Algorithm 5(信息-摘要算法)",它由MD2.MD3.MD4发展而来的一种单向函数算法(也就是HASH算法),它是国际著名的公钥加密算法标准RSA的第一设 计者R.Rivest于上个世纪90年代初开发出来的.MD5的最大作用在于,将不同格式的大容量文件信息在用数字签名软件来签署私人密钥前"压缩"成一 种…
说说WebForm: 数据列表控件: WebForm 下的列表绑定控件基本就是GridView.DataList.Repeater:当然还有其它DropDownList.ListBox等. 它们的共同的设置数据源方法: XXX.DataSource=数据源. 那么这个数据源的格式,究竟有啥要求?最简单的方式是随便给弄个,然后等它抛异常: 从上面的错误可以看的出来,基本上支持三种数据源绑定方式:IListSource,IEnumerable,IDataSource. 说说Winform 数据列表控…
数据库备份还原类: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; //应用相应的命名空间 using System.Windows.Forms; using System.Collections; using System.IO; using System.Data; using System.Data.SqlC…
<configuration> <appSettings> <add key="name" value="HF_Ultrastrong"/> </appSettings> <connectionStrings> <add name="ConString" connectionString="server = ***; DATABASE = DB_News; integra…
有时我们需要将vs自带的控件的某一些方法或属性进行一些修改,我们通常会新建一个类来继承它然后对它的方法或属性进行修改,那么我们如何将修改完成的控件类变成可视化控件放到工具箱中便于使用呢? 很简单,只要在修改完成的类上加上[System.ComponentModel.ToolboxItem(true)]然后再生成解决方案就能在工具箱的自定义控件一栏里找到我们修改完成的控件了. [System.ComponentModel.ToolboxItem(true)] //设置工具箱中显示的图标 publi…
You can expose the service in two different endpoints. the SOAP one can use the binding that support SOAP e.g. basicHttpBinding, the RESTful one can use the webHttpBinding. I assume your REST service will be in JSON, in that case, you need to configu…
Ninject 在 Winform. Asp.net MVC中连络EntityFramework的应用( 注入同一个DbContext的应用名人名言:科学是老老实实的东西,它要靠许许多多人民的劳动和智慧积累起来.——李四光 Ninject 在 Winform. Asp.net MVC 中连络EntityFramework的应用( 注入同一个DbContext的应用办法) Demo顶用到了 RepositoryT.dll, RepositoryT.EntityFramework.dll,Ninje…
转载自:http://www.cnblogs.com/mingmingruyuedlut/archive/2011/10/14/2212255.html 发送邮件所用的核心知识点 微软封装好的MailMessage类:主要处理发送邮件的内容(如:收发人地址.标题.主体.图片等等) 微软封装好的SmtpClient类:主要处理用smtp方式发送此邮件的配置信息(如:邮件服务器.发送端口号.验证方式等等) SmtpClient主要进行了三层的封装:Socket --> TcpClient -->…
<table cellSpacing="0" cellPadding="0" width="609" height="470" align="center" border="0"> <link href="../Css/default.css" rel="stylesheet" type="text/css"&…