Database changes made after Page_Load
Hello,
I write an application with dynamically generated buttons that make changes to a database (DELETE, INSERT). A button calls a sub (Objednavka) that makes the change (AddHandler btnItem.Command, AddressOf Objednavka). The problem is that I detect the change made by the mentioned buttons inside Page_Load sub but the change sub runs after the Page_Load, not before it so the data on the page is incorrect (one step old). I can use a workaround and refresh the page after the change is made in the db but then I loose my scrool position on the web page which needs to be retained. :(
Any help appreciated,
Radoslav
|