please I have a problem with the parameters of an action. Can someone help me? I'll explain:
I have an action "Etiquette (string nom_pharm, int numBon, int nbColis)" in the "Etiquetage" controller. In the view I have two input text for numBon and nbColis, I try to get them back to pass them in parameter but always the second one indicates that it is null, I use this line:
<input type="button" value="Ok" onclick="window.location = '@Url.Action("Etiquette", "Etiquetage",new { nom_pharm = @Model.PharmacieNom, numBon = " ", nbColis = " " })'+parseInt(document.getElementById('in').value), +parseInt(document.getElementById('bon').value)" />
Do you have an idea of the correct syntax?
Etiquettemethod parameters. You're assigning empty string tonumBonon that code. What do you expect to get?