I want to replace a DispForm.aspx of a list (SharePoint 2010) - so I did the following:

        string path = string.Format("Lists/{0}/DispForm.aspx", "MyList");
        SPFile file = web.GetFile(path);

Unfortunately, now is the DispForm.aspx of the list is no longer associated with it. (I can find the DispForm.aspx file using the sharepoint designer below "all items\lists\MyList")


As you are able to see the DispForm.aspx in SharePoint Designer, you can set it as the Default form.

In SharePoint 2010 Designer: To do this, in the Form section click on the DispForm.aspx And click on Set as Default option in the Ribbon control.

Hope this helps.

  • The DispForm.aspx is not available in the Form section :-( – AHO Nov 5 '13 at 8:19
  • What all entries are present in the Form section? – kamleshrao Nov 6 '13 at 6:39
  • Only EditForm.aspx and NewForm.aspx – AHO Nov 6 '13 at 8:58
  • Did you ever get around this? I'm on the verge of starting over entirely. – Jason Bray Apr 4 '16 at 17:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.