Monday, August 16, 2010

How to refresh entire page after gridview is updated?

Im using VB 2005





when i updated a row in gridview, or delete a row from gridview, onli the gridview is updated. however any codes outside of gridview will not be refreshed.





lets say i have a gridview with productname, price,etc





and a label that displays the Total sum of everything thats in the cart, calling on the method Total()





however whenever i update or delete something from gridview, only gridview changes. the total only changes once i REFRESH that page manually myself. how do i enable the page to do a refresh whenever a change is done to gridview?





because in 2005 only the gridview itself updates. nothing else around it. is there a way to make the entire page refresh so page_load can happen again?How to refresh entire page after gridview is updated?
Hi,


Write the function in javascript for page refresh.





function page_reload()


{


location.reload();


}





then call the javascript when ever the records is update and insert the record.

No comments:

Post a Comment