The equivalent of 'hello world' when it comes to custom events?!
-
Hi, I'm new to asp.net and C# and am having problems understanding how to create custom events. I have looked at various sites and the most basic examples that I have been able to find are far too complicated for novices. The tutorials that I have found all seem to suggest that, to create custom events, I need to write delegates and event handlers to start with but they are unclear and not specific. Also, some of the code I have downloaded is dated and does not work with VS2005 and what happened to starting with the basics?! I.e. right from scratch. Does anyone know any sites/links that might be useful to me. Specifically, I want to be able to have to separate controls (ascx) linked to a parent control. Where one of the child contols contains a textBox and a button to submit text which will make the said text appear in the label of the other child control. Any help truly appreciated, Dave
-
Hi, I'm new to asp.net and C# and am having problems understanding how to create custom events. I have looked at various sites and the most basic examples that I have been able to find are far too complicated for novices. The tutorials that I have found all seem to suggest that, to create custom events, I need to write delegates and event handlers to start with but they are unclear and not specific. Also, some of the code I have downloaded is dated and does not work with VS2005 and what happened to starting with the basics?! I.e. right from scratch. Does anyone know any sites/links that might be useful to me. Specifically, I want to be able to have to separate controls (ascx) linked to a parent control. Where one of the child contols contains a textBox and a button to submit text which will make the said text appear in the label of the other child control. Any help truly appreciated, Dave
Here's quite a good article on the subject (skip down to the step-by-step bit) http://www.ondotnet.com/pub/a/dotnet/2002/04/15/events.html[^]
Me: Can you see the "up" arrow? User:Errr...ummm....no. Me: Can you see an arrow that points upwards? User: Oh yes, I see it now! -Excerpt from a support call taken by me, 08/31/2007