button

  1. #1

    button

    hi all , i need help , I might not see the window by clicking the button





    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    //using System.Web.UI.WebControls;
    using Ext.Net;
    
    namespace AplicacionEN
    {
        public partial class pruebaboton1 : System.Web.UI.Page
        {
            Button Button1 = new Button();
            Window Window1 = new Window();
    
            protected void Page_Load(object sender, EventArgs e)
            {
                Button1.Listeners.Click.Handler = "#{Window1}.show();";
                Button1.Text = "Ventana";
                Button1.Icon = Icon.Application;
               
    
                Window1.ID = "Window1";
                Window1.Title = "Hello World!";
                Window1.Icon = Icon.Application;
                Window1.Height = 185;
                Window1.Width = 350;
                Window1.BodyStyle = "background-color: #fff";
                Window1.Padding = 5;
                Window1.Collapsible = true;
                Window1.Modal = true;
    
                form1.Controls.Add(Button1);
            }
            protected void Button1_Click(object sender, DirectEventArgs e)
            {
                this.Window1.Show();
            }
        }
    }
  2. #2
    You did not add Window to Controls collection
  3. #3

    ok

    Quote Originally Posted by Vladimir View Post
    You did not add Window to Controls collection

    thanks but open with load the page
  4. #4
    Set Hidden=true for the window
  5. #5
    Quote Originally Posted by Vladimir View Post
    Set Hidden=true for the window


    perfect , thanks again

Similar Threads

  1. [CLOSED] When button click, open the menu of button
    By supera in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 22, 2012, 4:23 PM
  2. Replies: 1
    Last Post: Dec 27, 2011, 1:47 PM
  3. [CLOSED] Dynamically generate button and button menu problem.
    By csssi_coolite in forum 1.x Legacy Premium Help
    Replies: 12
    Last Post: Dec 22, 2011, 5:02 AM
  4. Replies: 4
    Last Post: Nov 19, 2010, 1:39 PM
  5. Replies: 3
    Last Post: Feb 02, 2010, 6:32 PM

Tags for this Thread

Posting Permissions