OK - I just thought it might be the popup blocker. I'm using Chrome and didn't get a info bar. Turned off popup blocking and EpiServer did show me the conflict resolution form. Just need to figure out how to get round that automatically.
Are you infinitlely looping? Any chance you're calling Save/Publish some inside a method which hooks Save or Publish?
(Not that I've ever done anything like that... :-)
@Deane: Your exactly right - doh! It is stuck in a loop.
I wrapped the "DataFactory.Instance.Save(pageData, SaveAction.Publish);" code bit with if (pageData.IsModified), which seems to do the trick.
I guess I'm just wondering now if there is a better way. It seems to save OK, but I have to refresh the page once it goes back to the view tab.
I'm having a little problem getting some code to work when a user clicks Save and Publish after editting a page. Essentially I am automatically replacing some text in the pages content with some default properties set on the root page.
Everything appears to be working find, and I have done everything correctly - as far as I can tell; however on clicking Save and Publish, EpiServer will "hang" or "freeze" on the pages "view" tab. Links aren't clickable until I hit F5. After hitting F5 everything works again, and my code has successfully replaces the text.
Here is the method I have added to the Global.asax.cs file: