I've got some code setup which alters the DispForm.aspx page for a list. It gets a web part manager instance, deletes all webparts (the default listview one) and inserts a custom webpart.
The code seems to work, but for some reason; the file disappears after it's changed. I can't see it any more in SharePoint designer, and the DefaultDisplayFormUrl property of the list suddenly becomes null.
What's the proper way of programmatically changing DispForm.aspx without messing up the list instance?
MCTS in Web Application Development in .NET 2.0
View Complete Post