protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string s = "ddddddd";
s.Replace("d","c");
Response.Write(s);
string Type="1,2,3";
string[] myarray=Type.Split(new char[]{','});
string d = "abcertabcrtgabcder";
char[] abc = "abc".ToCharArray();
string []k=d.Split(abc);
foreach (string j in k)
{
Response.Write(j + "");
}
string delimStr = "abc";
char[] delimiter = delimStr.ToCharArray();
//string words = "one two,three:four.";
string[] splits = null;
for (int x = 1; x <= 5; x++)
{
splits = d.Split(delimiter, x);
//Response.Write("\ncount = {0,2} .............."+ x);
foreach (string s1 in splits)
{
Response.Write( s1+"");
}
}
本文作者:佚名 来源:丁红根的博客
CIO之家 www.ciozj.com 微信公众号:imciow