using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class trim : System.Web.UI.Page
{
string cut;
protected void Page_Load(object sender, EventArgs e)
{
string str = "CUS001";
this.cut = ltrim(str,"CUS");
Response.Write(cut);
}
}
Error แจ้งว่า
Error 1 The name 'ltrim' does not exist in the current context D:\testconnecDB\trim.aspx.cs 20 20 D:\testconnecDB\