[CLOSED] Only display a blank page when clicking on event action in server side code

  1. #1

    [CLOSED] Only display a blank page when clicking on event action in server side code

    My development environment:
    - Visual Studio Ultimate 2012
    - DNN 7.04.1
    - Ext.net 4.3
    - .NET Framework 4.0
    - Browers: FireFox, Chrome last version

    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="View.ascx.cs" Inherits="VTT_PROMAN_PartnerManagement.View" %>
    <%@ Register TagPrefix="ext" Namespace="Ext.Net" Assembly="Ext.Net, Version=4.3.0.0, Culture=neutral, PublicKeyToken=2e12ce3d0176cd87" %>
    
    <ext:ResourceManager runat="server" />
    
    <script runat="server">
        protected void Button2_Click(object sender, DirectEventArgs e)
        {
            this.Window1.Show();
        }
    </script>
        <h1>Simple Ext.NET Window Sample</h1>
    
        <p>The following sample demonstrates how to configure a new Window Component and "show" the Window if closed.</p>
    
    <ext:Button
        runat="server"
        Text="Button1"
        Icon="Application"
        OnClientClick="#{Window1}.show();"
    />
    
    <br />
    
    <ext:Button
        runat="server"
        Text="Button2"
        Icon="Application"
        OnDirectClick="Button2_Click"
    />
    
    <ext:Window
        ID="Window1"
        runat="server"
        Title="Hello World"
        Icon="Application"
        Height="185"
        Width="350"
        BodyStyle="background-color: #fff;"
        BodyPadding="5"
        Hidden="true"
        Modal="true">
        <Content>
            This is my first <a target="_blank" href="http://ext.net/"> Ext.NET</a> Window.
        </Content>
    </ext:Window>

    If I click on Button1 (Client Event) -> it work
    but click on Button2 (Server Event)-> only display a blank page.


    => I only have this problem for DNN 7.04.1 + Ext.net 4.3 but it's ok for DNN 7.04.1 + Ext.net 2.5


    Please help! Thanks.
    Last edited by fabricio.murta; Sep 22, 2017 at 10:03 PM. Reason: double post, no feedback should be required
  2. #2
    Hello @tumv! I believe you may be the also new user @thunv?

    This same question has just been posted and responded to here: I cannot show a window with server-side code Ext.net 4.3 version.
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Replies: 3
    Last Post: Apr 24, 2015, 11:20 AM
  2. open aspx page in button click event server side
    By antoreegan in forum 2.x Help
    Replies: 0
    Last Post: Apr 03, 2013, 7:18 AM
  3. Replies: 2
    Last Post: Sep 28, 2011, 8:28 AM

Posting Permissions