Click here to Skip to main content
15,849,829 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
public ActionResult compdrop(int? cid)

Error 1:There is no ViewData item of type 'IEnumerable<SelectListItem>'

while using
public ActionResult compdrop(int cid)

Error 2:The parameters dictionary contains a null entry for parameter 'cid' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult compdrop(Int32)' in 'singleview_Mmodel.Controllers.commonController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter.
Parameter name: parameters

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900