Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Luke Alderton 191 posts 508 karma points
    Jan 14, 2013 @ 13:12
    Luke Alderton

    Custom Dashboard Item

    I've created a new umbraco dashboard item on the content node to display a list of new comments on an MVC blog I'm making, it lists the comments as expected and the buttons to approve comments works flawlessly; however the page doesn't reload the list of comments and I'm not sure why.

    After a postback, the same items display, however if I refresh, the new updated list displays, I need the updated list to display on postback rather than forcing the user to refresh the page.

    Below is my onload method which loads the list of comments.

    protected override void OnLoad(EventArgs e)
        base.OnLoad(e); // check if it's a postback because showing new results on postback breaks the // ability to get checkbox values
        if (!IsPostBack)

    I'd appreciate any help on this matter and thanks in advance,

  • Trond K. 11 posts 52 karma points
    Jan 17, 2013 @ 16:33
    Trond K.

    Isn't it just to remove the !IsPostBack check?

    ( showResults(e) is only executed on when the page/control is first loaded as it is now )



Please Sign in or register to post replies

Write your reply to: