本文整理汇总了C#中Function.RemoveSpecialChars方法的典型用法代码示例。如果您正苦于以下问题:C# Function.RemoveSpecialChars方法的具体用法?C# Function.RemoveSpecialChars怎么用?C# Function.RemoveSpecialChars使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Function
的用法示例。
在下文中一共展示了Function.RemoveSpecialChars方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: lnkSearch_Click
protected void lnkSearch_Click(object sender, EventArgs e)
{
Function f = new Function();
string s = f.RemoveSpecialChars(txtSearchCancelCharge.Text.Trim());
dv.RowFilter = "CancelChargeName like '%" + s + "%'";
total.Text = dv.Count.ToString();
gvCancelChargeList.DataSource = dv;
gvCancelChargeList.DataBind();
}
示例2: lnkSearch_Click
protected void lnkSearch_Click(object sender, EventArgs e)
{
Function f = new Function();
Regex test = new Regex("[^0-9]");
string s = f.RemoveSpecialChars(txtSearchListBus.Text.Trim());
if ((!s.Equals(""))&&(!test.IsMatch(s)))
{
dv.RowFilter = "ListBusID ='" + s + "'";
total.Text = dv.Count.ToString();
gvListBusList.DataSource = dv;
gvListBusList.DataBind();
}
else
LoadData();
}
示例3: lnkSearch_Click
protected void lnkSearch_Click(object sender, EventArgs e)
{
Function f = new Function();
string s = f.RemoveSpecialChars(txtSearchBus.Text.Trim());
int value = Int32.Parse(DropDownList1.SelectedValue.ToString());
if(value==0)
dv.RowFilter = "BusName like '%" + s + "%'";
else
dv.RowFilter = "BusPlate like '%" + s + "%'";
total.Text = dv.Count.ToString();
gvBusList.DataSource = dv;
gvBusList.DataBind();
}