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?
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
oops - title wrong - new CONTENT not new media. Durr.
is working on a reply...