in

SharePoint University

Clean slate. Nothing but SharePoint.
Go, SharePoint!

Custom .aspx forms for custom list definitions

Last post 07-03-2008 7:39 AM by sigurbjorn. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 07-03-2008 7:39 AM

    • sigurbjorn
    • Top 500 Contributor
    • Joined on 06-19-2008
    • Reykjavik, Iceland

    Custom .aspx forms for custom list definitions

    Dear all....

    I have been in the SharePoint scene for just two weeks now, reading books, articles and blogs about general and advanced SharePoint topics. I'm a developer and I've been assigned the task to create deployable applications/solutions for SharePoint. Specifically WSS 3.0.

    So to start with something I've decided to create a simple application (what purpose is not important now) that contains a custom content type and implements a list definition based on that content type. I'm required to customize the new/edit/display forms for the items in that list and not to use InfoPath (sighh!).

    Then I go and create a new Empty SharePoint project in Visual Studio, add and define the content type and then the list definition.

    So my question is this. Are these following steps correct from a best practice point of view (based on what I've read so far...)

    1. Open um "NewForm.aspx" in the list definition.
    2. Set the <WebPartPages:WebPartZone ... ID="Main" ...> Visible property to FALSE
    3. And then add my fields for example like this inside the "PlaceHolderMain" <asp:content> block

      <SharePoint:FormField FieldName="Title" runat="server" ControlMode="New" />

    Or what is the best way to completely customize the list forms.

    Best regards from Iceland,
    Sigurbjorn

    http://sigurbjorn.wordpress.com
    Filed under:
Page 1 of 1 (1 items)

Need SharePoint Training? Attend a SharePoint Bootcamp!
Forum content (c) original posters. Everything else (c) 2008 SharePoint Experts, Inc.