PDA

View Full Version : [CLOSED] Ext.net v2 Beta release: DisplayFields Html property donĀ“t works...



supera
Mar 23, 2012, 12:25 PM
Hi

When I set a value in Html property of displayFields, the value (text html) don“t renderer in my aspx page.
In DP1, this works fine.



<%@ Page Language="vb" %>
<%@ 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">

<script runat="server">

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
df1.html = "<b>Html</b> property"
df2.text = "Text property"
End Sub

</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<ext:ResourceManager ID="resManagerDividas" runat="server" Locale="pt-BR" />
<form id="form1" runat="server">
<ext:DisplayField runat="server" ID="df1" X="90" Y="5" Width="500" Html="defaul <b>html</b>" />
<ext:DisplayField runat="server" ID="df2" X="90" Y="5" Width="500" text="defaul text" />
</form>
</body>
</html>

Daniil
Mar 23, 2012, 2:43 PM
Hi,

Confirmed, thanks for the report. We are investigating.

Here is the minimized example to reproduce.

Example

<%@ Page Language="C#" %>

<%@ 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>Ext.NET v2 Example</title>
</head>
<body>
<ext:ResourceManager runat="server" />
<ext:DisplayField runat="server" Html="Hello World!" />
</body>
</html>

Daniil
Mar 23, 2012, 4:04 PM
Now please use Text instead of Html. And you can still use HTML tags.

Text="<b>Hello World!</b>"

Example

<%@ Page Language="C#" %>

<%@ 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>Ext.NET v2 Example</title>
</head>
<body>
<ext:ResourceManager runat="server" />
<ext:DisplayField runat="server" Text="<b>Hello World!</b>" />
</body>
</html>

supera
Mar 26, 2012, 1:43 PM
Works fine...

Thanks a lot.