Using VS'12 KendoUI - C# asp.net MVC EF Code First Internet Application Template
I have finally gotten my Kendo DDL ( DropDownList ) to work,
I was working on the post ActionResult when I found that
if (ModelState.IsValid)
is Alwaysfalse
when I click on My kendoUI Upload button ( the one bound in the control)
- If however i click on the Regular submitt button
<input type="submit" value="Upload" id="do" class="k-button"/>
theModelState.IsValid
is true, but none of my "Upload selected files" were in the[Httppost]
actionResult
My Question is simple , how do i Post both of them to my Controller at once?
here is a little example of my code ( the 2 buttons )
<div>
<p>
<input type="submit" value="Upload" id="do" class="k-button"/>
</p>
</div>
@(Html.Kendo().Upload()
.Name("attachments")
.Async(async => async
.Save("Index", "ImageUpload")
.AutoUpload(false)
)
)