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
Sasi Reddy
NA
346
226.9k
String.Split() Problem
Feb 21 2014 2:14 AM
string current1="02/02/1988";
string[] ar1=current1.Split('/');
string ar2=ar1[2];
I am getting error like this.Index was outside bounds of the array @last line
If i put same code in IIS
string current1="02/02/1988";
string[] ar1=current1.Split('/');
string ar2=ar1[2];
I am not getting any error
Could you please solve above problem?.
If i put this code as normal like this
string current1="02/02/1988";
string[] ar1=current1.Split('-');
string ar2=ar1[2];
sometimes i am getting error and sometimes not getting error
Reply
Answers (
13
)
Chat appliction using Remoting in C#
Error in crystal report on client machine