MonoX 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.

html tables wrapping in browse mode  (Mono Support )

28861 put(a) pogledan, 4 odgovor(a) 23.3.2012. 11:38:06Kreirao(la) mk
mk

mk

23.3.2012. 11:43:00

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>
Ovaj sadržaj još nije ocijenjen. 
120 Reputacija 9 Ukupno objava
denis

denis

23.3.2012. 12:01:31
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.
Ovaj sadržaj još nije ocijenjen. 
7207 Reputacija 956 Ukupno objava
shawndg

shawndg

24.3.2012. 11:18:32
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>



Ovaj sadržaj još nije ocijenjen. 
1871 Reputacija 252 Ukupno objava
shawndg

shawndg

24.3.2012. 11:21:55
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
Ovaj sadržaj još nije ocijenjen. 
1871 Reputacija 252 Ukupno objava