---
title: "Reload page on json success"  
description: "Reload page on json success"  
author: "Hemant Patel"  
published: 2017-12-07  
updated: 2017-12-07  
canonical: https://www.mindstick.com/forum/34386/reload-page-on-json-success  
category: "c#"  
tags: ["asp.net", "asp.net mvc", "mvc", "mvc4"]  
reading_time: 3 minutes  

---

# Reload page on json success

I want to [reload page](https://answers.mindstick.com/qa/95674/how-do-you-force-a-reload-page-on-firefox) on my [json](https://www.mindstick.com/forum/34446/convert-json-string-to-object) [success](https://www.mindstick.com/articles/12957/best-tips-to-make-your-ghostwriting-experience-a-success). Below is my [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii) please give me some idea.

```
$.ajax({
                        type: "POST",
                        url: '@Url.Action("Delete")',
                        data: '{StudentId: ' + JSON.stringify(std) + '}',
                        dataType: "json",
                        contentType: "application/json; charset=utf-8",
                        success: function (response) {

                        },
                        error: function (XMLHttpRequest, textStatus, errorThrown) {
                            alert('oops, something bad happened')
                        }
                    });
```

\

## Replies

### Reply by Anonymous User

Hi Harsh,

Please write following line of code in your success method:

```
  window.location.reload();
```

Here is your modified code:

```
  $.ajax({
                        type: "POST",
                        url: '@Url.Action("Delete")',
                        data: '{StudentId: ' + JSON.stringify(std) + '}',
                        dataType: "json",
                        contentType: "application/json; charset=utf-8",
                        success: function (response) {
                            window.location.reload();
                         
                        },
                        error: function (XMLHttpRequest, textStatus, errorThrown) {
                            alert('oops, something bad happened')
                        }
                    });
```


---

Original Source: https://www.mindstick.com/forum/34386/reload-page-on-json-success

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
