Using WebPartManager without database

Last post 07-08-2008 10:28 PM by mharder. 3 replies.

Sort Posts:

  • Using WebPartManager without database

    07-08-2008, 4:09 AM
    • Member
      17 point Member
    • merlintintintin
    • Member since 07-02-2007, 3:10 PM
    • Liège, Belgium
    • Posts 36

    Hello,

    I'm trying to find a simple solution of drag & drop with C# and AJAX to move buttons in a grid. I've found this solution that is using WebPart: http://waitink.blogspot.com/2008/06/ajax-web-parts-part-1-drag-and-drop.html This solution seem's to be pretyty nice but I'm getting an error when I'm trying to execute my code because I do not have any database and I don't want to install a databse for this application.

    Question is: Is it possible to use WebPartManager without database ? How ?

    Thanks!

    La Richesse & la Gloire ne griseront jamais que les temples...
  • Re: Using WebPartManager without database

    07-08-2008, 5:02 PM
    • Contributor
      4,557 point Contributor
    • mharder
    • Member since 11-22-2002, 7:03 AM
    • Redmond, WA
    • Posts 917
    • AspNetTeam
      Moderator

    If you want to enable the personalization-related features of WebParts, you need to use some sort of personalization provider to store the data.  You can implement a custom personalization provider to store the data however you'd like.

    http://blogs.msdn.com/mharder

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Using WebPartManager without database

    07-08-2008, 10:22 PM
    • All-Star
      91,768 point All-Star
    • vinz
    • Member since 10-05-2007, 3:47 PM
    • Cebu, Philippines
    • Posts 13,769
    • TrustedFriends-MVPs

    merlintintintin:

    Is it possible to use WebPartManager without database ? How ?
     

    Im not sure about it. but If you need Personalization for WebParts then Database is a necessity  because it is where the personalized data will be stored.. But if you don't need personalization then Just set the attribute Personalization-Enabled to FALSE in the WebPartManager like below

    <asp:WebPartManager runat="server" id="WebPartManager1" personalization-enabled="false" /> 

    Refer below for more informations 

    http://msdn.microsoft.com/en-us/library/083486e0.aspx

     

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

  • Re: Using WebPartManager without database

    07-08-2008, 10:28 PM
    • Contributor
      4,557 point Contributor
    • mharder
    • Member since 11-22-2002, 7:03 AM
    • Redmond, WA
    • Posts 917
    • AspNetTeam
      Moderator

    If you write a custom personalization provider, you can store and retrieve the data however you'd like (database, web service, xml file, etc.).  You could even store it in memory, though you'd lose the data when the application shut down.

    For most practical purposes you either want personalization disabled, or else you want to store it in some persistent way.

    -Mike

    http://blogs.msdn.com/mharder

    This posting is provided "AS IS" with no warranties, and confers no rights.
Page 1 of 1 (4 items)