Mono Support  html tables wrapping in browse mode 

Viewed 28373 time(s), 4 post(s), 3/23/2012 11:38:06 AM - by mk
mk
mk
3/23/2012 11:43:00 AM
120 Reputation 9 Total posts


All the web parts are automatically wrapped up with html tables in browse mode. I don't want to have these tables in browse mode. I want clean html.


<table id="ctl00-ctl00-ctl01-ctl00-cp-cp-cp-cp-leftWebPartZone" class="webPartZoneClass"
style="width: 100%;">
<tbody>
<tr>
<td>
<table id="WebPart_wp305900241" cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
<tbody>
<tr>
<td>
<div class="">
<div id="WebPartTitle_wp305900241" class="web-part-title">
<div class="web-part-body">
<div id="sideleft">
<div id="subnav" class="box">
</div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>

1
3/23/2012 12:01:31 PM
7207 Reputation 956 Total posts

That is the legacy code produced by default implementation of Web part zone in ASP.NET. MonoX includes a different tableless Web part zone, so please just use it in the Web part zone declaration on your page.

2
3/24/2012 11:18:32 AM
1871 Reputation 252 Total posts

You can code it in something like this..
Header information of course needs to be your own..

<%@ Page
Language="C#"
AutoEventWireup="True"
CodeBehind="Default.aspx.cs"
Inherits="TheScene.Web.Default"
Theme="Scene2"
MasterPageFile="/MonoX/MasterPages/ThePittsburghSceneHeader2.master"
%>

<%@ MasterType TypeName="MonoSoftware.MonoX.BaseMasterPage" %>

<%@ Import Namespace="MonoSoftware.MonoX.Resources" %>
<%@ Register Assembly="MonoX" Namespace="MonoSoftware.MonoX" TagPrefix="portal" %>


<asp:Content ID="Content1" ContentPlaceHolderID="cp" runat="server">

<portal:PortalWebPartZone HeaderText='LeftFooterZone' ID="LeftFooterZone" runat="server" Width="100%" ChromeTemplateFile="">
<ZoneTemplate>
</ZoneTemplate>
</portal:PortalWebPartZone>

</asp:Content>



3
3/24/2012 11:21:55 AM
1871 Reputation 252 Total posts

Oh ya, and remember... if your changing this on a existing page to reset zone personalization via the monox admin panel.
If you find weird error that refers to something about zone personalizations.

from my experience, changing code like this often requires the zone personalization's for the specific page to be reset via the MonoX Admin panel

4
This is a demo site for MonoX. Please visit Mono Software for more info.