Refresh After PostBack

  • Thread starter Thread starter Dot Net Daddy
  • Start date Start date
D

Dot Net Daddy

Hello,

On my page I take some data from the database. There is a DELETE button
to remove the data from the database. DELETE button works fine, it does
what it must do, but after the postback the old data still shows up
whereas it ought to show nothing at all.

Thanks in advance...
 
You are not refreshing the Grid. It is being pulled from ViewState, which is
now old data. Rebind the data in the delete event and you are set.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think Outside the Box!
*************************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top