no events firing.

  • Thread starter Thread starter jlw
  • Start date Start date
J

jlw

Hello all, I have a strange one here.

in VS.NET VB web application, I can create a webform,
place server controls on it, run it, and server controls
fire all the right events in the postback routines.

I create a simple usercontrol with one button, drag it
onto the webform, none of the events in the usercontrol
get trapped in the code behind segements.

I even tried adding the usercontrol at runtime by placing
a palce holder on the form, and calling
placeholder.controls.add(page.loadcontrol
("mycontrol.ascx")

the control loads, no problem. then same thing.. no
events trapped by the codebehind routines in the user
control.

Usercontrol events should be respected and fired or there
realy is no purpose for having them...

Anyone ever have this problem? and know of a solutios.sl
THanks,
JLW
 
Usercontrol events should be respected and fired or there
realy is no purpose for having them...

Anyone ever have this problem? and know of a solutios.sl

I had your problem with composite controls (not really the same as a user
control)... but what I had to do was assign the .id properties of the user
control elements (i.e. textboxes, buttons, etc) to me.uniqueid.
 
Back
Top