Webpart,minimizeVerb and RestoreVerb

Last post 11-06-2009 9:49 AM by 4show. 7 replies.

Sort Posts:

  • Webpart,minimizeVerb and RestoreVerb

    10-31-2009, 3:15 PM
    • Member
      point Member
    • 4show
    • Member since 10-31-2009, 3:01 PM
    • Posts 5

     Can someone help me out. I really dont know what am doing wrong. I have a webpart that i have created. I added the webpartmanager and the webpartzone. I have utilised the minimizeVerb and restoreverb with the imageurl. when i go to view designer, i could see both the collapse and expand button but when i run it, I cant see them. what am i doing wrong. Please help.

  • Re: Webpart,minimizeVerb and RestoreVerb

    11-01-2009, 2:09 AM
    • Member
      120 point Member
    • jaffal
    • Member since 10-25-2009, 6:28 PM
    • Jordan
    • Posts 25

    what browser do you use?

    and if you can post the code it would be appreciated. 

    “First, solve the problem. Then, write the code.”
    (John Johnson)
    ________________________________________________
    Please mark as Answer if it helped you :)
  • Re: Webpart,minimizeVerb and RestoreVerb

    11-02-2009, 7:45 PM
    • All-Star
      91,768 point All-Star
    • vinz
    • Member since 10-05-2007, 11:47 AM
    • Cebu, Philippines
    • Posts 13,769
    • TrustedFriends-MVPs

    Try to add this line in page load:

    WebPartManager1.DisplayMode = WebPartManager.DesignDisplayMode;

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

  • Re: Webpart,minimizeVerb and RestoreVerb

    11-03-2009, 10:14 AM
    • Member
      point Member
    • 4show
    • Member since 10-31-2009, 3:01 PM
    • Posts 5

     The browser that I am using is IE7

  • Re: Webpart,minimizeVerb and RestoreVerb

    11-03-2009, 10:15 AM
    • Member
      point Member
    • 4show
    • Member since 10-31-2009, 3:01 PM
    • Posts 5

    I will try adding that to the page load and see what happens. Thanks 

  • Re: Webpart,minimizeVerb and RestoreVerb

    11-03-2009, 3:01 PM
    • Member
      point Member
    • 4show
    • Member since 10-31-2009, 3:01 PM
    • Posts 5

    Hi, I have done what u said by adding the code snippet at the page load and when i run it i get this error; the specified dispay mode is currently disabled on this page.make sure personalisation is enabled for the current user.

     

  • Re: Webpart,minimizeVerb and RestoreVerb

    11-03-2009, 8:57 PM
    Answer
    • All-Star
      91,768 point All-Star
    • vinz
    • Member since 10-05-2007, 11:47 AM
    • Cebu, Philippines
    • Posts 13,769
    • TrustedFriends-MVPs

    4show:
    Hi, I have done what u said by adding the code snippet at the page load and when i run it i get this error; the specified dispay mode is currently disabled on this page.make sure personalisation is enabled for the current user.

    Be sure to set  Authentication mode in your web config like:

     
    <authentication mode="Windows" />
    <authorization>
    <allow users="*" />
    <deny users="?" />
    </authorization>

     

    And set authorization scope for all users in your web.config file like:

        <webParts>
    <personalization defaultProvider="SqlPersonalizationProvider">
    <providers>
    <add name="SqlPersonalizationProvider" type="System.Web.UI.WebControls.WebParts.SqlPersonalizationProvider" connectionStringName="AspNetDBConnectionString" applicationName="MSWebParts"/>
    </providers>
    <authorization>
    <allow users="*" verbs="enterSharedScope"/>
    <allow users="*" verbs="modifyState"/>
    </authorization>
    </personalization>
    </webParts>

    Please take a look at this post:Implementing ASP.NET WebParts with Different Authentication modes

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

  • Re: Webpart,minimizeVerb and RestoreVerb

    11-06-2009, 9:49 AM
    • Member
      point Member
    • 4show
    • Member since 10-31-2009, 3:01 PM
    • Posts 5

    Thanks Vinz, it worked.

Page 1 of 1 (8 items)