|
|
||||||
|
#1
|
|
|
|
|
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 |
|
|
|
#2
|
|
|
|
|
"jlw" <jonathanlwoods> wrote in news:062001c378a9$7cfdcd80
$a101280a: > 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. |
|
|
| Similar Threads | |
| dynamically adding controls with events (but events are not firing) Hi, I have a very simple page where I have a dynamically generated control (panel) with child controls, but the problem is the dynamically added control has events and they... |
|
| Events not firing in IE7 on PWA I have Project Server 2007 and Project Pro 2007 on XP Pro with IE7. When I click on a project in Project Center, nothing happens. Likewise, in the Resource Center, when I... |
|
| No events are firing I have the simplest of all possible web pages short of "Hellow world," and it doesn't friggin'work. I need someone to show me the secret handshake to get this working. I... |
|
| ASP.NET events firing twice I have an asp.net(2003) form that uses web server controls event architecture. The form has edit, cancel, save, delete buttons on it. When the delete button is clicked the... |
|
| Firing Events Hi NG maybe it's a silly question if i have 2 buttons on a Windows Form, button1 and button2: button1 has delegates subscribed this.button1.Click += new... |
|
|
All times are GMT. The time now is 05:17 AM. | Privacy Policy
|