Problem when coming back to previous page.
-
Hi, So the problem is I have created an asp.net project.There is a page contains DELETE button which deletes Grid Data from the page. When I click on Delete button, it deletes the data and show a JavaScript alert message that the Data has been deleted. After that I access some other page and when I come back to the page using back button of Browser, It show the same "The Data has been deleted" alert again. I am not getting how to stop that alert message to show agsin abd agsin on the Page. So please help me. Thanks in Advance.
-
Hi, So the problem is I have created an asp.net project.There is a page contains DELETE button which deletes Grid Data from the page. When I click on Delete button, it deletes the data and show a JavaScript alert message that the Data has been deleted. After that I access some other page and when I come back to the page using back button of Browser, It show the same "The Data has been deleted" alert again. I am not getting how to stop that alert message to show agsin abd agsin on the Page. So please help me. Thanks in Advance.
The best way to do this is to do a Server.Transfer to the same page after deleting, so that going back goes back to a request for the page, not a postback that is doing a delete.
Christian Graus Driven to the arms of OSX by Vista.
-
The best way to do this is to do a Server.Transfer to the same page after deleting, so that going back goes back to a request for the page, not a postback that is doing a delete.
Christian Graus Driven to the arms of OSX by Vista.
I am not getting what you want to say. Where I use Server.Transfer??? Sorry.. But over the head answer...