read more problem
<p>I did read more function but it's not working correctly. I mean I can split my test post and I can cut my string with substring function. And I did this using &lt; !--kamore--> keyword. </p>

<p>But after I cut this with substring and do innerhtml and if there is some html tag before the index the css is going crazy. (&lt; p>&lt; !--kamore-->) I can't solve this. If I'm using regex it just make all of them like text and there is no html tags in my post and it's not good. I mean if there is some links or table in my post they will not showing. They are just text.</p>

<p>Here is my little code.</p>

<pre><code>#region ReadMore

string strContent = drvRow["cont"].ToString();

//strContent = Server.HtmlDecode(strContent);
//strContent = Regex.Replace(strContent, @"&lt;/?\w+((\s+\w+(\s*=\s*(?:"".*?""|'.*?'|[^'""&gt;\s]+))?)+\s*|\s*)/?&gt;", string.Empty);

// More extension by kad1r
int kaMoreIndex;
kaMoreIndex = strContent.IndexOf("&lt;!--kamore--&gt;");
if (kaMoreIndex &gt; 0)
{
    if (strContent.Length &gt;= kaMoreIndex)
    {
        aReadMore.Visible = true;
        article.InnerHtml = strContent.Substring(0, kaMoreIndex);
        // if this ends like this there is a problem
        // &lt; p&gt;&lt; !--kamore--&gt; or &lt; div&gt;&lt; !--kamore--&gt;
        // because there is no end of this tag!
    }
    else
    {
        article.InnerHtml = strContent;
    }
}
else
{
    article.InnerHtml = strContent;
}

#endregion
</code></pre>
