点击按钮触发事件调用存储过程2

--注释:App_Code(.cs文档)

using System;
using System.Text.RegularExpressions;
using System.Web;
using System.Configuration;
using System.Web.UI;
using System.Data;
using System.IO;
using System.Web.UI.WebControls;

namespace Coeno.Utility

{

  public static class String

    {

      public static string CleanUpInput(string strInput)

        {

          strInput  =  strInput + " " ;

          strInput  =  strInput.Replace(" [ "" ");

          strInput  =  strInput.Replace(" ] ", " ");

          strInput  =  strInput.Replace(" { ", " ");

          strInput  =  strInput.Replace(" } ", " ");

          strInput  =  strInput.Replace(" ; "" ");

          strInput  =  strInput.Replace(" & ", " ");

          strInput  =  strInput.Replace(" < "" ");

          strInput  =  strInput.Replace(" > "" ");

          strInput  =  strInput.Replace(" ' "" ");

          strInput  =  Coeno.Tools.SDBC.ToDBC(strInput);

          --点击按钮触发事件调用存储过程3

          strInput  =  strInput.Trim();

          return strInput;

        }

    }

}

  

 

猜你喜欢

转载自www.cnblogs.com/ximi07/p/11142837.html