hi
Im new at EXT.NET, i create dynamic desktopwindows that contain formpanel user control and it work but the button events not work.
i tried DirectMethod and recreat usercontrol but not work i need help this is my code:

Desktop.aspx.cs:
protected void Page_Load(object sender, EventArgs e)
{

if (!X.IsAjaxRequest)
{
Control ws = Page.LoadControl("Windows/winSearch.ascx");
ws.ID = "myID";
DesktopWindow d = new DesktopWindow();
d.ID = "dw1";
d.Title = "search";
d.Width = 355;
d.Height = 550;
d.Maximizable = true;
d.Minimizable = true;
d.ItemCls = "directions";
d.ContentControls.Add(ws);

this.form1.Controls.Add(d);

DesktopModule dm = new DesktopModule();
dm.ModuleID = "dm1";
dm.WindowID = "dw1";

dm.AutoRun = false;
dm.Launcher.ID = "ln1";
dm.Launcher.Text = "window_1";
dm.Launcher.Icon = Icon.Cog;
deskDistance.Modules.Add(dm);

DesktopShortcut sht = new DesktopShortcut();
sht.ModuleID = "dm1";
sht.Text = "window_1";
sht.IconCls = "shortcut-icon icon-user48";
deskDistance.Shortcuts.Add(sht);
}

}


winsearch.ascx

<Buttons>
<ext:Button ID="btnClear_R" runat="server" Icon="Decline" Text="clear">
<Listeners>
<Click Handler="#{DirectMethods}.btnClear_R_Click();" />
</Listeners>
</ext:Button>
</Buttons>


winsearch.ascx.cs

[DirectMethod]
public void btnClear_R_Click()
{

X.Js.Alert("im here");
}