CreateCommon/Utility.cs
(开头部分) 11KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/******************************************************************************
*
* Filename: Utility.cs
* Description:通用类的方法封装,包含获取form表单的数值[包含获取string ,int,double]
* 以及包含数据库sql语句中特殊字符串的处理,全角和半角的转换方法
* Author : liangjw
* Created Mark: 2011-06-09
* E-mail: liangjw0504@163.com
* Version: V1.0.0.0
* Company: : Copyright (C) 2013 Create Family Wealth Power By Peter All Rights Reserved
* Remark: 无
* Update Author: 无
* Update Description: 无
* Update Mark : 无
*
*******************************************************************************/
using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Text.RegularExpressions;
using System.Data;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
using System.Web.Script.Serialization;
using System.Configuration;
using System.Web.UI.HtmlControls;
using System.Web.Security;
using System.Security.Cryptography;
namespace CreateCommon
{
public static class Utility
{
#region 截取字符串
/// <summary>
/// 截取字符串
/// </summary>
/// <param name="strValue"></param>
/// <param name="Len"></param>
/// <returns></returns>
public static string CheckStr(object strValue, int Len)
{
if (strValue.ToString().Length > Len)
{
return strValue.ToString().Substring(0, Len) + "......";
}
else
{
return strValue.ToString();
}
}
#endregion
#region 获取页面表单的字符串数值
/// <summary>
/// 获取页面表单的字符串数值
后面还有 289 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。