I am using MVC, I populate some values before redirecting to an action, During this my dictionary always has a count of 0?
I check the count before it passes and its over 0 but always 0 when it comes through the other side.
I pass other string values too but they all come through fine.
My Redirect to action.
return RedirectToAction(
"APNewQuote",
new {
OENumber = "", QuoteNumber = "", ClaimNumber = ClaimNumber,
MotorBodyRepairer = "", VehicleRegistration = vRegistration,
vehicleMakeId = "", vehicleModelId = "", vehicleRangeId = "",
vehicleMakeModels = "", vehicleModelCode = "",
year = vYear, OEParts = OEParts }
);
My Action result receiving the values.
public ActionResult APNewQuote(string OENumber, string QuoteNumber, string ClaimNumber,
string MotorBodyRepairer, string VehicleRegistration, int? vehicleMakeId,
int? vehicleModelId, int? vehicleRangeId, string vehicleMakeModels,
string vehicleModelCode, int? year, Dictionary<string,string> OEParts )
Could someone please tell me how i can prevent this.