How to show a simple window ?

  1. #1

    [CLOSE] How to show a simple window ?

    Hi everybody,

    I've ever used EXT.NET in my Web application with a previous version.

    But now, I would like to try the newest version of EXT.NET (2.0) and ASP.NET MVC 3.

    So, here is my ASPX page :

    <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
    
    <!DOCTYPE html>
    <html>
    <head runat="server">
        <title>Index</title>
    </head>
    <body>
        <div>
            <ext:ResourceManager ID="ResourceManager1" IDMode="Static" runat="server">
            </ext:ResourceManager>
            <ext:Window ID="Window1" runat="server" Collapsible="true" Height="185" Icon="Application"
                Title="Title" Width="350">
                <Items>
                </Items>
            </ext:Window>
        </div>
    </body>
    </html>
    And my web.config file :

    <?xml version="1.0"?>
    <!--
      For more information on how to configure your ASP.NET application, please visit
      http://go.microsoft.com/fwlink/?LinkId=152368
      -->
    
    <configuration>
    
        <configSections>
            <section name="extnet" type="Ext.Net.GlobalConfig" requirePermission="false" />
        </configSections>
    
        <appSettings>
            <add key="webpages:Version" value="1.0.0.0"/>
            <add key="ClientValidationEnabled" value="true"/>
            <add key="UnobtrusiveJavaScriptEnabled" value="true"/>
        </appSettings>
    
        <extnet theme="Default" />
    
        <system.web>
            <compilation debug="true" targetFramework="4.0">
                <assemblies>
                    <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
                    <add assembly="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
                    <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
                    <add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
                    <add assembly="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
                </assemblies>
            </compilation>
    
            <authentication mode="Forms">
                <forms loginUrl="~/Account/LogOn" timeout="2880" />
            </authentication>
    
            <pages>
                <namespaces>
                    <add namespace="System.Web.Helpers" />
                    <add namespace="System.Web.Mvc" />
                    <add namespace="System.Web.Mvc.Ajax" />
                    <add namespace="System.Web.Mvc.Html" />
                    <add namespace="System.Web.Routing" />
                    <add namespace="System.Web.WebPages"/>
                    <add namespace="Ext.Net" />
                    <add namespace="Ext.Net.MVC" />
                </namespaces>
                <controls>
                    <add tagPrefix="ext" namespace="Ext.Net" assembly="Ext.Net" />
                </controls>
            </pages>
    
            <httpHandlers>
                <add path="*/ext.axd" verb="*" type="Ext.Net.ResourceHandler" validate="false" />
            </httpHandlers>
            <httpModules>
                <add name="DirectRequestModule" type="Ext.Net.DirectRequestModule, Ext.Net" />
            </httpModules>
        </system.web>
    
        <system.webServer>
            <validation validateIntegratedModeConfiguration="false"/>
            <!--<modules runAllManagedModulesForAllRequests="true"/>-->
            <modules>
                <add name="DirectRequestModule" preCondition="managedHandler" type="Ext.Net.DirectRequestModule, Ext.Net" />
            </modules>
            <handlers>
                <add name="DirectRequestHandler" verb="*" path="*/ext.axd" preCondition="integratedMode" type="Ext.Net.ResourceHandler" />
            </handlers>
        </system.webServer>
    
        <runtime>
            <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
                <!--<dependentAssembly>
                    <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
                    <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.0" />
                </dependentAssembly>-->
                <dependentAssembly>
                    <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" />
                    <bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.5.7" />
                </dependentAssembly>
                <dependentAssembly>
                    <assemblyIdentity name="Ext.Net.Utilities" publicKeyToken="2c34ac34702a3c23" />
                    <bindingRedirect oldVersion="0.0.0.0-2.0.0" newVersion="2.0.1" />
                </dependentAssembly>
            </assemblyBinding>
        </runtime>
    </configuration>
    This code should show a simple window but I don't know why, when I reload my ASPX page, my window doesn't show.

    Anybody has an idea ?

    Thanks.
    Last edited by Greg44; Aug 07, 2012 at 10:38 PM. Reason: Subject close
  2. #2
    Please post generated html of the page
  3. #3
    Hi Vladimir,

    Finally, my ASPX page works fine.
    Maybe, I had a deployment error.

    Thanks for your answer.

Similar Threads

  1. Simple Window.show() not working
    By Tbaseflug in forum 2.x Help
    Replies: 3
    Last Post: May 23, 2012, 2:37 PM
  2. Replies: 3
    Last Post: Mar 19, 2012, 12:35 PM
  3. Replies: 1
    Last Post: Jan 27, 2012, 11:32 AM
  4. [CLOSED] simple ext:window Webconfig error
    By CarWise in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Jan 27, 2011, 12:07 PM
  5. Replies: 1
    Last Post: Jun 02, 2009, 1:35 AM

Tags for this Thread

Posting Permissions