How to submit more then one Id in POST
How to submit more then one Id in POST
How can I post more then one ID? Upon submit I need to submit two Id's within my post along with the datafield. I am posting as a formcollection to my actionresult.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
You are going to have to give us a whole lot more information that you have I'm afraid. Are you using Editor for this, or some other external form generator, or a simple HTML form. Could you elaborate on what setup you currently have and what you are trying to do please.
Allan
Sorry Allan,
I am using entity framework and have a navigational property that along with my Primary Id I wanted to submit this also as an Id but figured that I could do this on the back end in my sorting as well.
Are you saying that you've found a way to resolve the issue now?
If not, I'm afraid I still don't quite understand. Is the issue that you aren't sure how to send additional data with an Ajax request that DataTables makes? If so,
ajax.datacan be used for that.Allan