摘要:
1.效果图 2.在webApi项目,打开Nuget,搜索WebApiTestClient,安装WebApiTestClient,注意是给HelpPage的 3.打开引入WebApiTestClient后生成的HelpPageConfig.cs文件,将这行代码注释解开(原来生成的文件中,这行代码是被注 阅读全文
摘要:
var g_selProvince; var g_selCity; var Provinces=new Array( new Array("110000","北京"), new Array("120000","天津"), new Array("130000","河北省"), new Array("140000","山西省"), new Array("150000","内蒙古"), new Arr. 阅读全文
摘要:
/// <summary> /// SqlHelper提供对于SqlClient常用功能封装提供高性能和高可扩展性的最佳实践 /// </summary> public abstract class SqlHelper { //数据库连接字符串 public static readonly string sqlConnectionString = ConfigurationManager.Conn 阅读全文
摘要:
public class SendMail { /// <summary> /// 发送邮件 WebConfig需配置AppSeting 参数SMTP,EMAIL,EPASS /// </summary> /// <param name="SendTo">收件人,多个用逗号隔开</param> /// <param name="MailTitle">邮件标题</param> /// <param 阅读全文
摘要:
public class ImageMes { /// <summary> /// 生成缩略图 /// </summary> /// <param name="originalImagePath">源图路径</param> /// <param name="thumbnailPath">缩略图路径</param> /// <param name="width">缩略图宽度</param> /// 阅读全文
摘要:
/// <summary> /// 截取字符串,中文安两个字符处理 /// </summary> /// <param name="stringToSub"></param> /// <param name="length"></param> /// <returns></returns> public static string GetFirstString(object stringToSub 阅读全文
摘要:
[DllImport("Iphlpapi.dll")] private static extern int SendARP(Int32 dest, Int32 host, ref Int64 mac, ref Int32 length); [DllImport("Ws2_32.dll")] private static extern Int32 inet_addr(string ip); /// 阅读全文
摘要:
public class FileComm { /// <summary> /// 写入文件内容,重新覆盖 /// </summary> /// <param name="filenam">文件相对路径</param> /// <param name="content">需要写入的内容</param> public static void WriteHtml(string filenam, str 阅读全文
摘要:
public class EncryptString { /// /// MD5加密 /// /// /// public static string EncryptMD5(string instr) { string result; ... 阅读全文
摘要:
/// <summary> /// 替换标签,把 <>" 替换为HTML标记 /// </summary> /// <param name="str"></param> /// <returns></returns> public static string returnHtml(string str) { if (str.Trim() != "") { str = 阅读全文