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

  1. #1

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

    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>
    Last edited by Daniil; Mar 26, 2012 at 1:43 PM. Reason: [CLOSED]
  2. #2
    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>
  3. #3
    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>
    Last edited by Daniil; Mar 23, 2012 at 4:12 PM.
  4. #4
    Works fine...

    Thanks a lot.

Similar Threads

  1. Replies: 6
    Last Post: Mar 20, 2012, 8:06 PM
  2. Replies: 4
    Last Post: Mar 19, 2012, 1:01 PM
  3. Replies: 3
    Last Post: Mar 19, 2012, 12:35 PM
  4. Replies: 2
    Last Post: Mar 16, 2012, 7:09 PM
  5. Replies: 2
    Last Post: Mar 16, 2012, 5:53 PM

Posting Permissions