0

I'm Trying to pass data from view to a controller.

window.location.href = "/DesignCoverSheet/Index?revNumbers=" + revNumber + "&site=" + siteID; 

My problem is, revNumbers parameter consists of comma separated integers that I need to pass to the controller. Sometimes there could be thousands of integer values, so I don't think passing all these parameters in the URL itself is not a good solution. Do I have any other option to achieve this?

2
  • post alues using form post Commented Jul 4, 2014 at 5:24
  • if u really want to post revNumbers parameter through javascript then just use encryption and decrypt the revNumbers in controller... Commented Jul 4, 2014 at 5:26

1 Answer 1

1

Convert revNumber to array of integers and post to action and get in your action as below :

public ActionResult YourActionName(int[] revNumbers)
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.