[CLOSED] Updating window content

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] Updating window content

    Hi everybody!! :)

    I have an aspx page with a window defined like this:
    <ext:Window runat="server" ID="vtnMapa" Title="Mapa GIS" Hidden="true" Width="900px" Height="700px" Modal="true" Padding="5">
    </ext:Window>
    I set the html content by setting the ContentContainer.InnerHtml property in Page_Load event:

    vtnMapa.ContentContainer.InnerHtml = MapaGIS.MapaGis.GetMapText(Schema.Principal.entity, 875, 660);
    This code returns an String with an html document. It also contains some javascript.

    The first time page is loaded, html content is correctly populated. But after do some requests, reload page and Page_Load event is called again, and the html must change. I've debugged and saw that the value is correctly assigned but the window's content is not updated.

    Thanks for help.
    Last edited by Daniil; Dec 22, 2011 at 3:37 AM. Reason: [CLOSED]
  2. #2
    Hi,

    I was unable to reproduce the problem using the example below.

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            this.Window1.ContentContainer.InnerHtml = DateTime.Now.ToString();
        }
    </script>
    
    <!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 Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:Window ID="Window1" runat="server" />
        </form>
    </body>
    </html>

Similar Threads

  1. [CLOSED] Updating the title of a destop window
    By SymSure in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 13, 2012, 6:50 AM
  2. Updating Portlet content in DirectMethod
    By kotrao in forum 1.x Help
    Replies: 2
    Last Post: Aug 23, 2011, 6:27 AM
  3. [CLOSED] Updating window size during DirectEvent
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 13, 2010, 9:42 PM
  4. Replies: 1
    Last Post: Jul 23, 2009, 3:57 AM
  5. Updating window title in js
    By principal_X in forum 1.x Help
    Replies: 5
    Last Post: Jun 08, 2009, 8:25 PM

Tags for this Thread

Posting Permissions