Oct 06, 2009, 3:54 PM
Listener problem in dynamics forms inherited from WebControl
Hello,
I'm trying Coolite v0.8.1 and I have a little problem with dynamics forms.
I need to develop reusable forms (inherit from WebControl, in a DLL), and build this form in a dynamic way.
Something like this:
I've tried:
I also tried using the ClientID 'ctl' getting the same result (Java Console: "Coolite.AjaxMethods.ctl is undefined")
Any ideas?
Thanks in advance,
Gustavo (from Argentina)
I'm trying Coolite v0.8.1 and I have a little problem with dynamics forms.
I need to develop reusable forms (inherit from WebControl, in a DLL), and build this form in a dynamic way.
Something like this:
public partial class CustomerEditControl: System.Web.UI.WebControls.WebControl
{
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
// build the layout
Panel pnl = new Panel();
...etc...
this.Controls.Add(pnl);
}
etc..
private void newButtonClicked() { ... }
}
all is working very fine (and fast), but the problem comes when I try to set the 'new' button handler.I've tried:
btnNew.Listeners.Click.Handler = "#{CustomerEditControl}.newButtonClicked();";
but it doesn't work. Nothing happens when I click the button.I also tried using the ClientID 'ctl' getting the same result (Java Console: "Coolite.AjaxMethods.ctl is undefined")
Any ideas?
Thanks in advance,
Gustavo (from Argentina)