62,267
社区成员
发帖
与我相关
我的任务
分享
string source = @"使用此方法创建新的 Process 组件的数组,¶并将它们与本地计算机上运行同一可执行文件的所有进程资源关联。该进程资源必须已经存在于¶计算机上,因为 GetProcessesByName 不创建系统资源,而是将其与应用程序生成的 Process 组件关联。";
string[] arr = source.Split('¶');
Response.Write(arr.Length);
private string NewsCnt = @"第一部分:文章内容文章内容文章内容文章内容文章内容文章内容{NextPage}
第二部分:文章内容文章内容文章内容文章内容文章内容文章内容{NextPage}
第三部分:文章内容文章内容文章内容文章内容文章内容文章内容{NextPage}
";
int pagetag = 1;
private string ChildNewsCnt;
private void SubNewsontent()
{
if (NewsCnt.IndexOf("{NextPage}") != -1)
{
ChildNewsCnt = NewsCnt.Substring(0, NewsCnt.IndexOf("{NextPage}")).Replace("{NextPage}", "");
NewsCnt = NewsCnt.Substring(NewsCnt.IndexOf("{NextPage}") + 10);
Response.Write("第" + pagetag + "页内容:" + ChildNewsCnt + "<br />");
pagetag++;
SubNewsontent();
}
}