Hi all,
I have this string
value1: Dispatching System,proposal,to be sent,main,2022-006,related,2022-017,related
that is composed of this code
List<string> value1 = new List<string>();
foreach (string item in Request.Form)
{
if (item.Contains("ddl"))
{
value1.Add(Request.Form[item]);
}
}
ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('value1:\\n" + string.Join(",", value1) + "');", true);
I need to extract from this string from element number 5 to all subsequent elements, that is
2022-006,related,2022-007,related
and storing a row for each string value in a database table, that is
+----------+---------+
| t | q |
+----------+---------+
| 2022-006 | related |
| 2022-017 | related |
+----------+---------+
Can you help me? Thanks in advance for any help, really appreciated.