Hi guys, my first post here.
Here is the problem I have. I am developing a content management system for the website in ASP 3.5/Visual Studion 2008.
I have a form with the gridView in it. I also have a delete button in each row of the gridview. When a user clicks a "Delete" button, the application retrieves jobId and other variables from the grid and deletes that job from the database.
It all works fine, but in one case. I am testing all scenarious now and here is one of them:
When the user deletes all jobs from the GridView the application responds with "There no jobs to display" (AS PLANNED), but if I hit F5("Refresh") button at that very moment I see that the application grabs the last jobId it deleted from the database and tries to delete it again. My database procedure responds with the Error message and I see the gridView appear on the page(with the row last deleted), even though there are no jobs in the database.
My question is: how do I get rid of the variable values that the application keeps even after the last Job has been deleted from the database? Where are those valies kept, viewState, enviroment variables?
Sorry for the long explanation, don't see the way to explain it shorter.
View Complete Post