How to set a web part's list at runtime - custom property

Last post 07-02-2009 8:34 PM by d-frag. 2 replies.

Sort Posts:

  • How to set a web part's list at runtime - custom property

    06-25-2009, 1:38 AM
    • Member
      2 point Member
    • d-frag
    • Member since 06-16-2009, 11:14 PM
    • Posts 7

    I have some web parts that are dependent on a couple of custom SharePoint lists. If the lists didn't exist or didn't have the fields the web parts needed when the web parts were added to a page, the whole page would bomb out. After I came up with my solution, I wrote an article on it and thought I'd share it with you. This how-to also shows how the web parts can be added to a page with a message telling the user to configure the list source property, and once a user does, the web part renders as normal. I also show how to verify the list exists and has the fields necessary for the web part to function. Its all in this article, How to set a SharePoint web part's list at run time

  • Re: How to set a web part's list at runtime - custom property

    06-25-2009, 10:03 PM
    Answer
    • All-Star
      91,768 point All-Star
    • vinz
    • Member since 10-05-2007, 3:47 PM
    • Cebu, Philippines
    • Posts 13,769
    • TrustedFriends-MVPs

    Hi d-frag,

    Thanks for sharing your solution to the community.. We really do appreciate it.. But it would nice if you post this to the Anouncement or Tip/Trick section in this forum or post it at the Sharepoint community..

    Here's the link below:

    http://forums.asp.net/11.aspx

    "Code,Beer and Music ~ my way of being a programmer"

  • Re: How to set a web part's list at runtime - custom property

    07-02-2009, 8:34 PM
    • Member
      2 point Member
    • d-frag
    • Member since 06-16-2009, 11:14 PM
    • Posts 7

    Sorry about that. Will do.

Page 1 of 1 (3 items)