CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.web_parts_and_personalization Tags:
Item Type: NewsGroup Date Entered: 8/7/2005 2:25:02 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 34 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
MorningZ
Asp.Net User
Getting a webpart's ID not to show up8/7/2005 2:25:02 AM

0/0

In my page i have declared 

<asp:WebPartZone ID="RightModules" runat="server" EmptyZoneText="Nothing is this Zone" Width="100%" BorderStyle="None">
        <ZoneTemplate
>
                  .. Some User Controls that i load here ..
        </ZoneTemplate
>
</asp:WebPartZone
>

which generates in HTML:

<table cellspacing="0" cellpadding="2" border="0" style="width:100%;">
     <tr>
           <td style="white-space:nowrap;">RightModules</td>
     </tr>
</table>

.... Web Part 1 HTML ....

.... Web Part 1 HTML ....

.... etc ....



Can't seem to find where to "turn off" page showing "RightModules", i just want show what's inside the <ZoneTemplate>


Also, do web parts HAVE to be surrounded by a border?  i've got "BorderStyle" set to none on everything that it lights up on in intellisense and i still get the border


Thanks in advance


 


"If you make it idiot proof, they'll build a better idiot"
JoeBerg
Asp.Net User
Re: Getting a webpart's ID not to show up8/7/2005 7:36:01 PM

0/0

By default, the WebPartZone uses the DisplayTitle property as the Title. That property checks for the HeaderText then falls back to the ID of the Zone. You could either set the HeaderText property to a space (empty string won't work) or you can create your own custom WebPartZone and override the DisplayTitle property to return empty string.

For your 2nd question, are you talking about the Zone or the WebParts inside that zone? If you want to modify the ChromeType around the WebParts, you can set the PartChromeType property of the WebPartZone to None or TitleOnly. If you are talking about borders around the perimeter of the Zone, you can set BorderWidth to 0px directly on the control style.

Hope this helps,
Joe
MorningZ
Asp.Net User
Re: Getting a webpart's ID not to show up8/7/2005 11:06:39 PM

0/0

ah, the "must be a space not just empty space" is what threw me off, and that seriously goes against all thinking, but ah well, it works

answer to #2 worked as well, thanks
"If you make it idiot proof, they'll build a better idiot"
mharder
Asp.Net User
Re: Getting a webpart's ID not to show up8/8/2005 5:55:40 PM

0/0

The issue here is that the page renders differently depending on the WebPartManager.DisplayMode property.  In BrowseDisplayMode, the WebPartZone.DisplayTitle is not rendered, and the WebPartChrome is rendered exactly as specified.

However, in the other DisplayModes (Design, Edit, Catalog, Connect), we assume that the user needs more information so we render differently.  The WebPartZone.DisplayTitle is rendered, and the title bar is rendered on WebParts even if WebPartChrome is None or BorderOnly.

-Mike


http://blogs.msdn.com/mharder

This posting is provided "AS IS" with no warranties, and confers no rights.
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Programming Visual Basic 2005 Authors: Jesse Liberty, Pages: 548, Published: 2005
Pro SharePoint 2003 Development Techniques: Development Techniques Authors: Nikander Bruggeman, Margriet Bruggeman, Pages: 395, Published: 2006
Advanced SharePoint Services Solutions: Advanced Sharepoint Services Solutions Authors: Scot P. Hillier, Pages: 365, Published: 2005
Essential ASP.Net 2.0 Authors: Fritz Onion, Keith Brown, Pages: 345, Published: 2006
ASP.NET 2.0: A Developer's Notebook Authors: Wei Meng Lee, Pages: 326, Published: 2005
Beginning SharePoint Administration: Windows SharePoint Services and SharePoint Portal Server Authors: Göran Husman, Pages: 522, Published: 2006
Professional Web Parts and Custom Controls with ASP.NET 2.0 Authors: Peter Vogel, Pages: 449, Published: 2005
Real World SharePoint 2007: Indispensable Experiences from 16 MOSS and WSS MVPs Authors: Robert Bogue, Adam Buenz, Scot Hillier, Andrew Connell, Stacy Draper, Luis Du Solier Grinda, Todd Klindt, Jason Medero, Dustin Miller, Shane Perran, Joris Poelmans, Heather Solomon, Nick Swan, Jan Tielens, Mike Walsh, Shane Young, Pages: 504, Published: 2007
Creating Client Extranets with Sharepoint 2003 Authors: Mark E. Gerow, Pages: 216, Published: 2006

Web:
Free List RollUp Web Part - Doug Ortiz's blog It returns anything assigned to your user id or a group you're in but I had ... The installer works fine, however, the new web part does not show up at all. ...
Enterprise .NET Community: WebParts - From Sharepoint to ASP.NET 2.0 Mar 8, 2005 ... No matter the WebPart is correctly marked as a safe control, it seems not granted required permissions to make calls over the Web. What’s up ...
Dynamically adding WebParts using WebPartManagerInternals class ... Jan 10, 2008 ... In this method I called two methods on the Internals property (beware this Internals property DOE’S NOT show up in Intellisense) ...
Getting Started with the CKS - Configure the Sign-up Web Part for ... Jul 19, 2007 ... Here’s how to get the Survey webpart working to support the submission ... then show the previously selected options and let me change them. ...
Using WebParts in ASP.Net 2.0 We can show webparts with the help of the Pagecatalog which are closed by .... are going to use the built in login and sign up controls. Lets get started: ...
Sharepoint design_and_customization Webparts added to a ... Webparts added to a ZoneTemplate in page layout not rendering? ... I've added labels, buttons, calendars and more--none of which show up. ...
Getting More from the Content Query Web Part (CQWP) - Blog This way documents that are in a "work-in-progress" state do not show up ... The Content Query Web Part allows for the inclusion of up to 3 filter criteria. ...
Dor Rotman’s Blog » Blog Archive » Stock Quote Web Part(s) Then I get an IMG element with the ID “chart” and set it’s source to the ... If not, look up solutions for defining proxy settings for SharePoint 2007. ...
Michael O'Donovan's SharePoint and Stuff : Use IRuntimeFilter to ... Therefore you only get the Audience chooser pop-up in SPS sites. Sample: ... Show and Hide WebParts using an IRuntimeFilter by Modonovan ...




Search This Site:










how to display records without using datagrid

url rewrite for directories

multiple datatables - best approach?

project - human resource system

how to execute a program on the server?

small integration with classic asp

printing on a4 label paper using c#

zipping a file using system.io.compression.gzipstream

regex and newline problem

request.servervariables("logon_user")

how to search database and view it in gridview?????? please help me and dont ignore like yahoo answers!!

possible bug....

comparison string with compareinfo.compare

play music in asp.net 2.0

asp.net technical issue.

suppress form action

populating dropdownlist based on user

compiler error message: cs0433: the type 'detentstatus' exists in both ...

using relative path in 2.0

batabase question

help with an warning error

how does transact-sql interact with asp.net for webforms and databases

get method

treeview question

asp.net vb advanced book

no access to sessions anymore after using urlrewriter?

this forum has reached 25k threads & 1000 pages

how to encrypt section mailsettings in system.net ?

asp sql combo box help

cookie

  Privacy | Contact Us
All Times Are GMT