Question: VB/ASP.NET Force Refresh?

Discussion in 'OT Technology' started by keizerdragoon, Oct 18, 2007.

  1. keizerdragoon

    keizerdragoon New Member

    Joined:
    Dec 13, 2003
    Messages:
    95
    Likes Received:
    0
    I have a gridview on an ASP.NET web app and I wrote some crude vb to delete an entry in a database when a button is pushed. When the row is deleted the gridview doesn't reflect the change. Is there a command I can insert with the delete button that will force the page to refresh to show the recent change?
     
  2. SLED

    SLED custom title

    Joined:
    Sep 20, 2001
    Messages:
    28,122
    Likes Received:
    8
    after you row is deleted, depending on how you are doing your binding, you can call:

    MyGridView.DataBind();

    which should give it a refresh
     

Share This Page