# How to refresh radzen dialog after submit event (POST) in Razor Pages

**URL:** <https://forum.radzen.com/t/how-to-refresh-radzen-dialog-after-submit-event-post-in-razor-pages/15044>\
**Category:** Blazor WebAssembly\
**Created:** [August 26, 2023, 3:21pm UTC](https://forum.radzen.com/t/how-to-refresh-radzen-dialog-after-submit-event-post-in-razor-pages/15044 "2023-08-26T15:21:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SCosmos](https://forum.radzen.com/letter_avatar_proxy/v4/letter/s/5f9b8f/32.png) [@SCosmos](https://forum.radzen.com/u/SCosmos)\
**Post date:** [August 26, 2023, 3:21pm UTC](https://forum.radzen.com/t/how-to-refresh-radzen-dialog-after-submit-event-post-in-razor-pages/15044/1 "2023-08-26T15:21:57Z")

</div>

Hi,

I create an action via the post method in radzen modal dialog.

When I run my app and Create an action the post method works fine.

When I want to create a new action the field in modal is not empty and keep the last action data.

However I use : `async Task`

Below the code in razor page :

```auto
  [Parameter] public EventCallback OnSubmitCallback { get; set; }

 async Task CreationAction(int actionId)
    {    
            
      var result = await DialogService.OpenAsync("Creation de l'action", ds =>
       @<div> 
...
      <RadzenButton Text="Update" Icon="report" ButtonStyle="ButtonStyle.Light" Click=@CreateActionList />              

        async Task CreateActionList()
        {
             
            await client.PostAsJsonAsync($"api/etude/{actionId}", act); 
            uriHelper.NavigateTo($"etude/actions/{dev.SuiviBEId}");
           
            await OnSubmitCallback.InvokeAsync();
        }         
    }

```

Have you an idea how to avoid it?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![SCosmos](https://forum.radzen.com/letter_avatar_proxy/v4/letter/s/5f9b8f/32.png) [@SCosmos](https://forum.radzen.com/u/SCosmos)\
**Post date:** [August 27, 2023, 8:05pm UTC](https://forum.radzen.com/t/how-to-refresh-radzen-dialog-after-submit-event-post-in-razor-pages/15044/2 "2023-08-27T20:05:33Z")

</div>

I set the model property.

```auto
MyModel.MyProperty = string.Empty.

```
