Copied to clipboard

Flag this post as spam?

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


  • dan norcott 21 posts 22 karma points
    Mar 26, 2010 @ 11:10
    dan norcott
    0

    Adding new media via API - not available until a refresh

    Hi All

    A site I'm working on at the moment needs members to be able to add pages - I've got a user control working that does this (it's basically competition entries, which appear under a special content type).

    My only problem is related to execution order I think.  My user control has a "create" button, which calls a method in the back end which adds the page. The page the user adds the new page to contains a nav showing all the user content pages.  The problem is that the new page won't appear until an extra page refresh is done - at the moment I am doing a Response.Redirect(Request.RawUrl); to force this, but it's awfully cheesy and there must be a better way.

    How might someone who knows .net and umbraco a little better than I handle this?

    Thanks in advance,

    Dan

  • dan norcott 21 posts 22 karma points
    Mar 26, 2010 @ 17:02
    dan norcott
    0

    oops - title wrong - new CONTENT not new media. Durr.

Please Sign in or register to post replies

Write your reply to:

Draft