Url.Die Aktion setzt ein & in meiner url, wie kann ich dieses Problem lösen?

Ich will senden den Variablen itemId und entityModel der ActionResult CreateNote:

public ActionResult CreateNote(
        [ModelBinder(typeof(Models.JsonModelBinder))]
        NoteModel Model, string cmd, long? itemId, string modelEntity)

mit diesem javascript:

Model.meta.PostAction = Url.Action("CreateNote", new { cmd = "Save", itemId = itemId, modelEntity = modelEntity});

Jedoch die url schicken, ist

localhost:1304/Administration/blue/en-gb/Entity/CreateNote?modelEntity=Phrase&itemId=44     

Will ich senden

localhost:1304/Administration/blue/en-gb/Entity/CreateNote?modelEntity=Phrase&itemId=44

Wie kann ich verhindern, dass Url.Aktion legen Sie die & vor der zweiten variable, die ich senden möchten?

InformationsquelleAutor der Frage Niek de Klein | 2012-01-03

Schreibe einen Kommentar