Jul 28, 2020, 5:10 AM
The control with ID not found
I created a window by code behind, but when I try to capture the event to close I get an error saying it is not possible to find the control id.
{
string value = "ok";
}
protected void LoadWindowFromCodeBehindWithParams(object sender, DirectEventArgs e)
{
int myid = 0;
Ext.Net.Window win = new Ext.Net.Window();
win.ID = "wmId";
win.Width = Unit.Pixel(1185);
win.Height = Unit.Pixel(660);
win.Scrollable = ScrollableOption.Disabled;
win.Modal = true;
win.Loader = new ComponentLoader();
win.Loader.Url = "~/App/mypage.aspx?id=" + myid;
win.Loader.Mode = Ext.Net.LoadMode.Frame;
win.Loader.LoadMask.ShowMask = true;
win.DirectEvents.Close.Event += MyMethod;
win.Render(this);
}
public void MyMethod(object sender, DirectEventArgs e){
string value = "ok";
}