Set the title to a part in a webPartZone

Last post 05-27-2008 9:22 AM by vinz. 7 replies.

Sort Posts:

  • Set the title to a part in a webPartZone

    04-09-2008, 9:50 AM
    • Loading...
    • pcruz
    • Joined on 02-04-2008, 9:04 PM
    • Posts 88

     Hello all,

    I am creating a page that have 2 web part zone, in each webPartZone I have 3 Parts, the parts are asp:panels, so I need to add a title to these parts.

    Please Need some help to do it.

    Regards.
     

    Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
    Regards,
    Pedro Abraham de la Cruz
  • Re: Set the title to a part in a webPartZone

    04-09-2008, 11:10 AM
    • Loading...
    • pcruz
    • Joined on 02-04-2008, 9:04 PM
    • Posts 88

     any help or imposible?

    Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
    Regards,
    Pedro Abraham de la Cruz
  • Re: Set the title to a part in a webPartZone

    04-09-2008, 11:28 AM
    Answer
    • Loading...
    • pcruz
    • Joined on 02-04-2008, 9:04 PM
    • Posts 88

    guys, i did it, just like this :S  

    this.WebPartZone1.WebParts["Panel1"].Title = "Inbox"; 

    Thanks 

    Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
    Regards,
    Pedro Abraham de la Cruz
  • Re: Set the title to a part in a webPartZone

    04-10-2008, 1:48 AM
    • Loading...
    • vinz
    • Joined on 10-05-2007, 11:47 AM
    • Cebu Philippines
    • Posts 8,260

    Another way to set the Title of the Webpart is doing it on the ASPX markup.. see below

    <asp:WebPartZone ID="WebPartZone1" runat="server">
                <ZoneTemplate>
                    <asp:Panel ID="Panel1" runat="server" Height="50px" Width="125px" title = "WebPart Panel">
                    </asp:Panel>
                </ZoneTemplate>
    </asp:WebPartZone>


    Regards,
    Vincent Maverick Durano

    Please post questions to the forums, where others may benefit.I do not offer free assistance by e-mail. Thank you!



  • Re: Set the title to a part in a webPartZone

    05-22-2008, 5:29 PM
    • Loading...
    • johncosmas
    • Joined on 10-22-2007, 3:24 PM
    • Posts 23

    I want the title to be BLANK  or REMOVED.

  • Re: Set the title to a part in a webPartZone

    05-22-2008, 5:33 PM
    • Loading...
    • vinz
    • Joined on 10-05-2007, 11:47 AM
    • Cebu Philippines
    • Posts 8,260

    johncosmas :

    I want the title to be BLANK  or REMOVED.

    Just set your WebPartZone HeaderText to space or &nbsp; something like

    <asp:WebPartZone ID="WebPartZone1" HeaderText=" " runat="server" >
    </asp:WebPartZone>

    Or

    <asp:WebPartZone ID="WebPartZone1" HeaderText="&nbsp;" runat="server" >
    </asp:WebPartZone>

     


    Regards,
    Vincent Maverick Durano

    Please post questions to the forums, where others may benefit.I do not offer free assistance by e-mail. Thank you!



  • Re: Set the title to a part in a webPartZone

    05-26-2008, 7:00 PM
    • Loading...
    • johncosmas
    • Joined on 10-22-2007, 3:24 PM
    • Posts 23

    Now that we got it cleared, how do we get it so it is not visible?  I set the FONT-SIZE to XXSMALL but it did not do much.

  • Re: Set the title to a part in a webPartZone

    05-27-2008, 9:22 AM
    • Loading...
    • vinz
    • Joined on 10-05-2007, 11:47 AM
    • Cebu Philippines
    • Posts 8,260

    johncosmas:

    Now that we got it cleared, how do we get it so it is not visible?  I set the FONT-SIZE to XXSMALL but it did not do much.

    Hi,

    Please create your own thread/Topic so that we can discuss the things there... 


    Regards,
    Vincent Maverick Durano

    Please post questions to the forums, where others may benefit.I do not offer free assistance by e-mail. Thank you!



Page 1 of 1 (8 items)
Microsoft Communities
Page view counter