Oct 12, 2011, 11:24 AM
how to pop-up a new window from direct event handler
I think that it is another client-side vs server side issue, but I could't work out.
Almost all the EXT.net examples with direct event create the new window (or panel/viewport) in ASP.net Page_Load() function, some use the client-side event to display the window.
I tried to do things like this in a direct event handler (Button_Click is a direct event handler to a button click):
I have two questions:
1. Is it possible to launch a custom window from direct event handler?
2. If on this custom window, there are other custom components or buttons, in which way I can write the direct event handler for those buttons, or manipulate those components ?
Many thanks again!
Almost all the EXT.net examples with direct event create the new window (or panel/viewport) in ASP.net Page_Load() function, some use the client-side event to display the window.
I tried to do things like this in a direct event handler (Button_Click is a direct event handler to a button click):
<script runat="server">
protected void Button_Click(object sender, DirectEventArgs e)
{
Window win = new Window();
win.Show();
}
</script>
I noticed also that the examples put always a "placeholder" at the end, which is an asp.net server control. But even if I put that, nothing happens.I have two questions:
1. Is it possible to launch a custom window from direct event handler?
2. If on this custom window, there are other custom components or buttons, in which way I can write the direct event handler for those buttons, or manipulate those components ?
Many thanks again!