Hi
I'm trying to use the kendo upload web control with C#, I can upload the controls is always on error, I know that I have to return an empty response but I don't know exactly how. This is my javascript
<script>
$(document).ready(function () {
$("#files").kendoUpload({
async: {
saveUrl: "Attachments.aspx",
removeUrl: "remove",
autoUpload: true
}
});
});
</script>
and on C# I have
protected void Page_Load(object sender, EventArgs e)
{
HttpFileCollection x = Request.Files;
if (x.Count>0)
{
Response.Clear();
Response.ContentType = "application/json";
Response.Write("{}");
}
}
I tried with Response.Write("") to with and without contentype but it didn't work.
Do anyone know how to build the correct success response?
I'm trying to use the kendo upload web control with C#, I can upload the controls is always on error, I know that I have to return an empty response but I don't know exactly how. This is my javascript
<script>
$(document).ready(function () {
$("#files").kendoUpload({
async: {
saveUrl: "Attachments.aspx",
removeUrl: "remove",
autoUpload: true
}
});
});
</script>
and on C# I have
protected void Page_Load(object sender, EventArgs e)
{
HttpFileCollection x = Request.Files;
if (x.Count>0)
{
Response.Clear();
Response.ContentType = "application/json";
Response.Write("{}");
}
}
I tried with Response.Write("") to with and without contentype but it didn't work.
Do anyone know how to build the correct success response?