Sep 12, 2011, 7:42 PM
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();
}
}
}