User38443587 posted
hello, from my understand you want to save the text box info which have sub category and don’t want to save sub category info.
If I’m correct, I’ll suggest you to set text box and sub category the same name plus row number as “cost1,cost2,category1,category2…”,
Then you can check the sub category info like this demo:
ArrayList arr = new ArrayList();
for (int i = 0; i < 30; i++)
{
if (Request["category" + i] != "0")
{
arr.Add(Request["cost" + i]); //here you can save the cost info to DB
}
}
If my understand is not correct please give more info then I can help you more effective.
Thank you.