string s = TextBox1.Text;
string[] s1 = s.Split(new char[] { "&" }); 
Console.WriteLine(s1[0]);
Console.WriteLine(s1[1]);

above code giving me error as 'Cannot implicitly convert type 'string' to 'char' '
pls give me solition.

string s = TextBox3.Text; 
        string[] s1 = s.Split(new char[] { '/' });
        iMonth = s1[1];
        FinYear = s1[2];

this is correct code.

use
string[] s1 = s.Split("&");
or
string[] s1 = s.Split('&');

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.