How to submit more then one Id in POST

How to submit more then one Id in POST

HardCorps88HardCorps88 Posts: 11Questions: 5Answers: 0

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

Answers

  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin

    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

  • HardCorps88HardCorps88 Posts: 11Questions: 5Answers: 0

    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.

  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin
    Answer ✓

    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.data can be used for that.

    Allan

This discussion has been closed.