I am not getting how to pass my image names form view to action method .I am using ajax Beginform .The problem is,if I don't use ajax beginform ,So much of code changes are required.
'@using (Ajax.BeginForm("postvalue","MyController",new (imagecount="count" new AjaxOptions {
HttpMethod="POST", OnBegin = "getValues" }))
{
<div id="preview">`enter code here`
<div id="1">
<label>image1</label>
</div>
<div id="2">
<label>image2</label>
</div>
</div>
</div>
}'
How can I be able to assign a value to image count .