I have a list of msgs (it could be 24 or 100+). I would need to remove many of these messages. I was wondering, what is the best way? I dont like the idea of building names for 100+ elements and doing something like doRemove = Request["msgId" + i];
I prefer receive a array such as long[] and do something like
long[] removeThese = Request["remove"];
foreach ....
//DELETE msgId WHERE userId=@userId
However i dont know if creating an array and POSTing it is possible with HTML (and basic javascript?) or if its the best solution. How should i do this?