Mono support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Mono Support  html tables wrapping in browse mode 

Viewed 4233 time(s), 4 post(s). 3/23/2012 11:38:06 AMby mk
mk
1

mk 3/23/2012 11:43:00 AM


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>
This content has not been rated yet. 
120 Reputation 9 Total posts
denis
2

denis 3/23/2012 12:01:31 PM

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.
This content has not been rated yet. 
7065 Reputation 920 Total posts
shawndg
3

shawndg 3/24/2012 11:18:32 AM

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>



This content has not been rated yet. 
1871 Reputation 252 Total posts
shawndg
4

shawndg 3/24/2012 11:21:55 AM

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
This content has not been rated yet. 
1871 Reputation 252 Total posts