I have a sample textbox txtAddress and I want to save it on two string address1, address2. if txtAddress is more than 15 character the other character will store in address2.
example:
txtAddress = 'how can i save this string'
storing should be, address1='how can i save, address2= ' this string'
i try this code but i dont know how to split using delimiter of number of character
txtAddress.Value= "how can i save this string";
Char delimiter = 15;
String[] substrings = txtAddress.Value.Split(delimiter);
foreach (var substring in substrings)
Thanks in advance, hope you can help me guys.