Problem with Index of in Substring array
<p>ProfilePageList is the string array with each string containing pageID, PageName and PageContent separated by group of characters (#$%). This is a ASP.NET application using C#</p>

<pre><code>            foreach (string item in ProfilePageList)
            {
                string PageContent = ""; string PageName = ""; string PageID = "";

                *** &gt; This part is wrong. Help me here ***

                PageID = item.Substring(0, item.IndexOf('#$%') + 2);
                PageContent = item.Substring(item.IndexOf('#$%') + 1);
                PageName = item.Substring(0, item.IndexOf('#$%'));


                callsomefunction(PageID , PageName, PageContent);  
            }
</code></pre>

<p>Input string is <code>Helloo#$%&lt;p&gt;How are you??&lt;/p&gt;#$%74396</code></p>

<p>I dont understand how to use this substring. Can someone help me Please!! Thanks a lot in advance..</p>
