漫漫技术人生路

C#

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

 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 + "</br>");

           }

            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+"</br>");
                }
            }


 

posted on 2006-10-18 09:38  javaca88  阅读(237)  评论(0编辑  收藏  举报