Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: SV: user controls


Message #1 by "Mats Boberg" <Mats.Boberg@n...> on Mon, 10 Dec 2001 11:05:12 +0100
There is one "feature" with visual studio.net:



Sometimes method from events get lost and doesn't work... no way to

explain it.



Try check: "Web Form Designer generated code"

private void InitializeComponent() {



	event...

	event...

	event...



}



and see if the event for the button exist.



A work around is to open the designer and click the button...





/Mats



-----Ursprungligt meddelande-----

Fr=E5n: yvonne [mailto:yvonne.dickson@p...]

Skickat: den 10 december 2001 10:26

Till: ASP+

=C4mne: [aspx] user controls



Hi all,



I have a user control which is placed on the main page.  The user

control

has a submit button on it.  My problem is that the event for the button

does not fire.



How do I fire this event from the page that contains the user control.



Appreciation to all



Yvonne




Message #2 by Yvonne Dickson <Yvonne.Dickson@p...> on Mon, 10 Dec 2001 10:13:13 -0000
Hi



private void InitializeComponent()  -- can't find this method although 

I can

see references to it ?



Where do I look?



Cheers

Yvonne



-----Original Message-----

From: Mats Boberg [mailto:Mats.Boberg@n...]

Sent: 10 December 2001 10:05

To: ASP+

Subject: [aspx] SV: user controls



There is one "feature" with visual studio.net:



Sometimes method from events get lost and doesn't work... no way to

explain it.



Try check: "Web Form Designer generated code"

private void InitializeComponent() {



	event...

	event...

	event...



}



and see if the event for the button exist.



A work around is to open the designer and click the button...





/Mats



-----Ursprungligt meddelande-----

Fr=E5n: yvonne [mailto:yvonne.dickson@p...]

Skickat: den 10 december 2001 10:26

Till: ASP+

=C4mne: [aspx] user controls



Hi all,



I have a user control which is placed on the main page.  The user

control

has a submit button on it.  My problem is that the event for the button 



does not fire.



How do I fire this event from the page that contains the user control.



Appreciation to all



Yvonne










  Return to Index