My string :
it would be possible to split this string to two elements
first element
[email protected];
and second elments
[email protected]; [email protected];
For insert
[email protected];
Into table_1 ?
and insert
[email protected]; [email protected];
into table_2 ?
the number of element of part one will always be one
the number of elements of part two is variable, it could be one but also 10/100/500
I have tried this code without success
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string value = "[email protected]; [email protected]; [email protected]";
List<string> values = value.Split(';', StringSplitOptions.RemoveEmptyEntries).ToList();
string Table1 = values[0];
values.RemoveAt(0);
string Table2 = string.Join(';', values).Trim();
Console.WriteLine(Table1);
Console.WriteLine(Table2);
}
}
need more information?

