Hi,
How to Redirect JsonResult to specific page
i have an action which it upload the excel file into database. I use JsonResult then the problem is, how can i redirect the result back to Index. My code based on previous sample.
<script type="text/javascript">
        $(function () {
            $("#btnGet").click(function () {
                $.post("/Admin/AdminMaterial",                   
                    function (response) {
                        alert("Material List Uploaded!");
                       
                    }
                 );
            });
        });
</script>
 
public JsonResult uploadExcel(MaterialList list, HttpPostedFileBase FileUpload)
{
    ....
    return Json(data, JsonRequestBehavior.AllowGet);
}