How to get Last Index Of "%" in a string in .NET ? I tried
string subString = content.Substring(0, startIndex);
int nextOpeningComment = subString.LastIndexOf("%", 0);
This is always giving me -1.
Here subString
I'm getting is:
<div id=\"xyz\"> \r\n <img alt=\"\" src=\"App_Themes/Default/Images/abc.jpg\" />\r\n <%--
Any help/suggestions appreciated.