@{
var text="If you want to apply some kind of paging, you can do so with a database quite easily.¬¬ You just need to insert some kind of symbol into the content to denote where the page breaks are - something that isn't likely to appear there in the normal
course of events. The following code shows a helper that will split such an article into pages:";
var delimiter= "¬¬";
}

Re: Create multiple Paragraph

There are various different overloads for the String.Split method. None of them accept a string. Some accept a string array (plus at least one other argument) and the others expect an array of chars. Regex.Split will happily accept a string.

If you want to use a string array, try this:

@{
var text="If you want to apply some kind of paging, you can do so with a database quite easily.¬¬ You just need to insert some kind of symbol into the content to denote where the page breaks are - something that isn't likely to appear there in the normal course of events. The following code shows a helper that will split such an article into pages:";
var delimiter = new string[] { "¬¬" };
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
@MultiplePage(text,delimiter)
</body>
</html>
@helper MultiplePage(string input, string[] delimiter)
{
string[] paragraph = input.Split(delimiter, StringSplitOptions.None);
foreach( var text in paragraph)
{
<p>@text</p>
}
}