how can i get the querystring id in there? is there any way
@using (Html.BeginForm("InformVendor", "Procurement",new {id="querystring Mode = "Inform" }, FormMethod.Post))
{
<tr>
<td>
@Html.DropDownListFor(m=>m.VendorId,new MultiSelectList(Model.VendorDropdownlist, "CustomerId", "ContactName"))
</td>
<td>
@Html.CheckBoxFor(m => m.IsEmail)
</td>
</tr>
<tr>
<td>
<input type="submit" id="btnsubmit" value="Nominate Vendor" />
</td>
<td></td>
</tr>
}
Anonymous User
27-Nov-2014If you add the Id to your view model and render it as a hidden field.
@Html.HiddenFor(m => m.Id)
You will be able to retrieve it like this instead of using the querystring.