I had a partial view which is having a Kendo MVC upload control. And now i need to use this partial view multiple times in a single .cshtml page.
Am facing problem with Control's ID and DOM conflicts... Like first Kendo upload is coming properly but second kendo upload is failing to load in UI.
So I came up with a dynamic .Name (...) so that whenever a kendo upload gets loaded it will be having unique ID.
Now the problem came with controller method. Here I need to get IEnumerable(HttpPostedFileBase) object on button click.
Am bit lost. Any hint is very helpful.
Rgds,
pavan
Edit To be more clear Let's say we had a partial view with textbox and button. on clicking the button we need to validate the textbox. But if the same partial view need to be used multiple times under same CSHTML is the one am facing now.
idfor upload control again and again? Just Try by having the differentID's and point theSame Controller and Upload Action Methodsto that., so that you can avoid conflicts. Or any other prob with that? If yes Just post bit of sample code and give a short explanation about it. Since your question is not giving the clear picture to answer. :) - RajeshKdev