Hello.
New to MVC so please be gentle.
I have the following cshtml part
My post method in my controller has -Code:<div id="uploadPanel"> <form action="/MyForms/Attachments" enctype="multipart/form-data" id="uploadForm" method="post" onclick="Sys.Mvc.AsyncForm.handleClick(this, new Sys.UI.DomEvent(event));" onsubmit="Sys.Mvc.AsyncForm.handleSubmit(this, new Sys.UI.DomEvent(event), { insertionMode: Sys.Mvc.InsertionMode.replace, updateTargetId: 'divConfirmation',onSuccess: Function.createDelegate(this, attachmentSuccess), onFailure: Function.createDelegate(this, attachmentFailure) });" > <input type="hidden" id="filledFormId" value="0" /> <input type="hidden" id="defaultFormTitle" value="Clinical Audit" /> <div id="slickUpload" class="su-slickupload" style="overflow: hidden; zoom: 1"> <div id="slickUpload_selector" class="su-fileselector" style="display:none;float:left;padding-right:1em">
I am trying to The filledFormId = 0 and formTitle "clinical Audit" into the post method Attachments, but I'm getting empty parameters.Code:[HttpPost] public PartialViewResult Attachments(UploadSession uploadSession, int? filledFormId, string defaultFormTitle) {
What am I doing wrong?
Kev.




Reply With Quote