TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
sunilsurender rajamani
NA
1
0
int to int[]
Jul 2 2009 5:26 AM
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");
}
}
%>
Reply
Answers (
1
)
text encoding
NonSerialized property.