Hello Friends.
I done a small program shown at below but its giving error as "cannot implicitly canvert int to int[]" in this line Resultt= Result.IndexOf(s); how to convert it...please give me solution.....
<%
String Result="hello dude no what is ur problem no match today is it vow no match for its gud ya k then no entries";
int[] Resultt = new int[6];
string[] a = new string[]
{
"no",
"no match",
"no match for",
"no entries",
};
foreach (string s in a)
{
Resultt= Result.IndexOf(s);
}
for (int i = 0; i <= 3; i++)
{
if (Resultt[i] != -1)
{
Response.Write("available");
}
else
{
Response.Write("unavailable");
}
}
%>