By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,950 Members | 1,005 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,950 IT Pros & Developers. It's quick & easy.

How to get the HTML client id generated by MVC in the controller when posting?

vavc1980
P: 25
MVC 3.

I have a View that displays a collection of a Model using the Html.BeginCollectionItem helper.
When the page is rendered the ids of the objects look something like this:

car[8abde400-b544-49df-b00e-e2462838ec96].id
...
car[3a58e517-fc4e-4b36-bf63-a7812f8b7cb5].id

I would like to get this for some specific validation purposes in the Controller when the data posted is received, specifically the part I'm looking for is , for example, car[8abde400-b544-49df-b00e-e2462838ec96] and car[3a58e517-fc4e-4b36-bf63-a7812f8b7cb5].

Thanks,
Sep 26 '12 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.