Page view counter

How to update datagrid if there is update on the DB?

Last post 09-01-2008 1:22 AM by cliquerz. 2 replies.

Sort Posts:

  • How to update datagrid if there is update on the DB?

    08-28-2008, 6:33 AM
    • Loading...
    • chinz85
    • Joined on 08-13-2008, 2:07 AM
    • Posts 11
    • Points 2

    Hi All, Is there a way to cache the datagrid and will update datagrid each time got record insert, update to the database?

    I don't want my client keep calling to database and retrieve the whole junk of data if there is no changes. Any idea?

    So far i've heard about Caching and not sure how is it and never apply to that on my web. Would appreciate if some1 can guide me on this. =(

  • Re: How to update datagrid if there is update on the DB?

    08-28-2008, 6:44 AM
    • Loading...
    • kamii47
    • Joined on 05-26-2005, 4:04 PM
    • Karachi, Pakistan
    • Posts 1,960
    • Points 8,686

    Whihc database U r using.

    You can use SqlCacheDependency for this

    Kamran Shahid
    Sr. Software Engineer
    (MCP,MCAD.net,MCSD.net,MCTS,MCPD.net[web])
    Assurety Consulting Inc.
    http://www.assuretyconsulting.com

    Remember to click "Mark as Answer" on the post that helps U
  • Re: How to update datagrid if there is update on the DB?

    09-01-2008, 1:22 AM
    Answer
    • Loading...
    • cliquerz
    • Joined on 09-02-2007, 8:54 PM
    • Philippines
    • Posts 52
    • Points 329

    Hi Chinz85

    If you are using SQL 2005, below is the link on how to use SqlCacheDependency.

    http://www.15seconds.com/issue/040518.htm

    Don't forget to tag me as an answer if it helps you.


    -------------------------------------------------


    Everyone lives in one of two tents: Con-TENT or discon-TENT
Page 1 of 1 (3 items)