Lots of HTML POST parameters? Like lists of things, maybe unknown quanities of items? This all starts to get in a bit of a mess.
Then you've got to manually break it all apart and put it back together again serverside to actually use it.
Much better to use JSON. Now with Newtonsoft's JSON library on the server you can receive as complicated JSON object as you like and parse it, iterate loops and generally make like easy for yourself.
JSON is native your browser so this is how you create a JSON object there.
var listOfTables = ;
Once you have some demo data, use the amazing http://jsonutils.com/ website to generate a load of Classes in VB.net which will mirror your data.
For example here is the VB.net class for the above code:
It is then so easy to create a new instance of the class and iterate the list or pass it around in your code as required. All the properties will appear by intellisense too.
© 2004 - 2019 1 Oak Hill Grove Surbiton Surrey KT6 6DS Phone: +44(020)82617371