Sep 05, 2012, 7:14 PM
[CLOSED] HTMLs are not rendering correctly
Hi,
The HTMLs are not rendering correctly in the HTML property - the values assigned to it is displayed on the screen. In my case, "b><font size = 3>Welcome!</b><br><br/>" are being displayed. Attached is the screenshot showing the issue :
The HTMLs are not rendering correctly in the HTML property - the values assigned to it is displayed on the screen. In my case, "b><font size = 3>Welcome!</b><br><br/>" are being displayed. Attached is the screenshot showing the issue :
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Dashboard.aspx.cs" Inherits="Web.Pages.Dashboard" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Dashboard</title>
</head>
<body>
<ext:ResourceManager runat="server" />
<%----------------------- TOP ROW: ANNOUNCEMENTS -----------------------------%>
<center>
<ext:FieldSet runat="server" Width="500" Height="260" Title="<i><h2>Welcome</h2></i>"
StyleSpec="margin-top: 75px">
<Items>
<ext:FormPanel ID="FormPanel1" runat="server" Title="Application" LabelWidth="110"
ShadowMode="Sides" Shadow="true" Width="450" Height="230" StyleSpec="padding: 30; background-color: F1F1F1;"
Icon="BasketAdd" Padding="5" Layout="Form">
<Items>
<ext:Panel ID="pnlCellOne" runat="server" Height="200" AutoScroll="true" Border="false"
Shadow="true" ShadowMode="Drop" BodyStyle="padding: 4px;" StyleSpec="margin-right: 4px;">
<Items>
<ext:Label ID="LabelAnnouncement" runat="server" Html="<b><font size = 3>Welcome!</b><br><br/>" />
</Items>
</ext:Panel>
</Items>
</ext:FormPanel>
</Items>
</ext:FieldSet>
</center>
</body>
</html>
Last edited by Daniil; Sep 07, 2012 at 6:02 AM.
Reason: [CLOSED]