This article provides the details to use custom ASPX pages when new Item is created\ Modified \viewed using SharePoint custom list. We will create List Item Content Types that refers to the custom ASPX pages. These list item content types are associated with list using SharePoint feature.
• Create the ASPX Pages
CustomNewForm.ASPX
CustomEditForm.ASPX
CustomDisplayForm.ASPX
• Write the complete code in the CS files for these pages.
• Signed the project using strong key.
• Deploy the DLL in the GAC and ASPX pages in the Layouts Folder <12 Hive>
• Add the assembly reference in the pages

• Create three XML files as
CUSTOMNEW.XML
CUSTOMEDIT.XML
CUSTOMDISPLAY.XML
• Create the ASPX Pages
CustomNewForm.ASPX
CustomEditForm.ASPX
CustomDisplayForm.ASPX
• Write the complete code in the CS files for these pages.
• Signed the project using strong key.
• Deploy the DLL in the GAC and ASPX pages in the Layouts Folder <12 Hive>
• Add the assembly reference in the pages

• Create three XML files as
CUSTOMNEW.XML
CUSTOMEDIT.XML
CUSTOMDISPLAY.XML
• Once XML files are ready create a new feature and in feature.XML file refer these XML files.
• Install\Activate the feature
• Navigate to the SharePoint list and set “Allow management of content types” Yes
• Add the newly created content type from “Add from existing site content types”
• Click “Change new button order and default content type” and set new content type as default.
• Create new list item, it will navigate to custom ASPX page.
No comments:
Post a Comment