iam getting this kind of error can any one tell me what exactly the problem is .
Try below mentioned options and see if it works
- strArr = str1.Split(Convert.ToChar("/"))
The problem is that Split method accepts parameter of type Char and “/” is a string.
If you write “/”.ToCharArray then your string is converted to an array of chars (with 1 element in this case). This is also what @Akash_Jain suggested, only using different methods.
thanks its working .
Can you mark this as a solution:-)