34π
β
This message is from the browser; and it will display anytime you try to refresh a page that was displayed as the result of a POST request.
It has no bearing on your code, the browser will display the same message on all websites where you try to refresh the page (hit F5 for example) which was displayed as a result of a previous POST request.
To prevent this from happening, make sure all POST requests redirect to a different view upon completion; and not render templates themselves.
π€Burhan Khalid
- Celery workers unable to connect to redis on docker instances
- Error: command 'x86_64-linux-gnu-gcc' when installing mysqlclient
- How to show more than 100 items on each paginated "Change List" page in Django Admin?
- Django __call__() missing 1 required keyword-only argument: 'manager'
0π
Just redirect your page to current page after inserting
, it will clear all the values and avoid adding the Duplicate records !
example:
protected void btnAdd_Click(object sender, EventArgs e)
{
//your code
Response.Redirect("Currentpage.aspx",true);
//or
Response.Redirect(Request.Url.AbsoluteUri);
}
π€user3441369
- Creating UTF-8 JsonResponse in Django
- Python/Django development, windows or linux?
- How does this Man-In-The-Middle attack work?
- How to describe parameters in DRF Docs
- Django is very slow on my machine
Source:stackexchange.com