[CLOSED] button DirectEvents.success & button DirectEvents.failure issue

  1. #1

    [CLOSED] button DirectEvents.success & button DirectEvents.failure issue

    Hi Team ,

    btnSubmit.DirectEvents.Click.Url = Url.Action("ImportExcelFileToDatabase", "AdminHome");
                                btnSubmit.DirectEvents.Click.FormID = "fileUpload";
                                btnSubmit.DirectEvents.Click.ExtraParams.Add(new { entityName = MasterFileTableName, isValid = true });
                                btnSubmit.DirectEvents.Click.EventMask.ShowMask = true;
                                btnSubmit.DirectEvents.Click.Success = "success";
                                btnSubmit.DirectEvents.Click.Failure = "failure";
    using above code I Call submit button direct events. This working fine in FF & Chrome and return result "success". Which is correct. When same form I open in IE10 this code return failure , don't know why it's call failure while view
    return Json(new {result = true, message = "Data imported successfully" });
    In view my code is
    if (isValid)
                    return Json(new {result = true, message = "Data imported successfully" });
                else
    return result;
    and return value come as download json code.

    Please suggest solution or work around.
    Last edited by Daniil; Apr 09, 2014 at 1:40 AM. Reason: [CLOSED]
  2. #2
    Hi @alscg,

    From a controller action you should return a DirectResult with ".IsUpload = true" setting or wrap a response in
    <textarea>response here</textarea>
    manually if you don't want to use a DirectResult for some reason. Is there any reason not to use a DirectResult?
    Last edited by Daniil; Apr 04, 2014 at 12:06 AM.

Similar Threads

  1. Replies: 2
    Last Post: Apr 03, 2014, 4:28 AM
  2. Replies: 2
    Last Post: Mar 11, 2014, 6:55 AM
  3. Bind grid with the use of button <DirectEvents> event
    By kavit@bdtpark.com in forum 2.x Help
    Replies: 12
    Last Post: May 23, 2013, 12:44 PM
  4. Replies: 0
    Last Post: Jun 12, 2012, 10:00 AM
  5. Replies: 2
    Last Post: Nov 02, 2011, 3:10 AM

Posting Permissions