<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
  <channel>
    <title>DotNetKicks.com - Stories tagged with Events</title>
    <description>the latest stories tagged with 'Events' from DotNetKicks.com</description>
    <link>http://www.dotnetkicks.com/</link>
    <language>en-us</language>
    <copyright>Atweb Publishing Ltd.</copyright>
    <docs>http://backend.userland.com/rss</docs>
    <generator>DotNetKicks.com - .NET links, community driven</generator>
    <ttl>30</ttl>
    <item>
      <title>Detect Browser refresh to avoid events getting fired again in ASP .NET</title>
      <description>If you have created a aspx page using C# and ASP.NET and have put a button on it , and in the Click event of this button if you are inserting some data in database , after click if user refresh the page than click event gets fired again resulting data insertion to database again, to stop events on the page getting fired on browser refresh we need to write bit of code to avoid it

In this example i've put a Label and a Button on the page, on click the label Text becomes Hello and when i refresh the page label's text again becomes Hello &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fcsharpdotnetfreak.blogspot.com%2f2008%2f12%2fdetect-browser-refresh-to-avoid-events.html"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fcsharpdotnetfreak.blogspot.com%2f2008%2f12%2fdetect-browser-refresh-to-avoid-events.html" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/aspnet/Detect_Browser_refresh_to_avoid_events_getting_fired_again_in_ASP_NET</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/aspnet/Detect_Browser_refresh_to_avoid_events_getting_fired_again_in_ASP_NET</guid>
      <pubDate>Mon, 01 Dec 2008 16:40:41 GMT</pubDate>
    </item>
    <item>
      <title>Passing references to events (almost)</title>
      <description>Have you ever needed to pass a reference to an event into another object? Think you can't do it in C#? This article shows how you can - some times! &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fblog.functionalfun.net%2f2008%2f11%2fpassing-around-references-to-events.html"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fblog.functionalfun.net%2f2008%2f11%2fpassing-around-references-to-events.html" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/csharp/Passing_references_to_events_almost</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/csharp/Passing_references_to_events_almost</guid>
      <pubDate>Fri, 14 Nov 2008 12:32:26 GMT</pubDate>
    </item>
    <item>
      <title> Some tips on writing event handling code in C# .NET</title>
      <description>You can drop a lot of repetitive code in C# event declaration and raising (including some EventArgs declarations, defining custom delegates, checking for nulls) if you follow these tips. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2frabdullin.com%2fsome-tips-on-writing-event-handling-code-in-c-net%2f"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2frabdullin.com%2fsome-tips-on-writing-event-handling-code-in-c-net%2f" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/csharp/Some_tips_on_writing_event_handling_code_in_C_NET</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/csharp/Some_tips_on_writing_event_handling_code_in_C_NET</guid>
      <pubDate>Tue, 23 Sep 2008 13:38:39 GMT</pubDate>
    </item>
    <item>
      <title>unit testing your events</title>
      <description>In this article I will show you how you can unit test your events. I will show you a simple technique that will enable you to test if your events fire exactly as often as you want them to and I will provide you with two implementations. One implementation works well with the .NET Framework 2.0 and the second one uses .NET 3.0 (anonymous methods) in order to minimize the code necessary. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fwww.dotnettoad.com%2findex.php%3f%2farchives%2f12-unit-testing-events.html"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fwww.dotnettoad.com%2findex.php%3f%2farchives%2f12-unit-testing-events.html" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/csharp/unit_testing_your_events</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/csharp/unit_testing_your_events</guid>
      <pubDate>Sun, 04 May 2008 11:01:02 GMT</pubDate>
    </item>
    <item>
      <title>Dynamically adding controls to ASPX pages (web forms) and assigning ev</title>
      <description>Although I've seen a lot of articles describing how to dynamically add controls to a Web Form, few mention even a little hint to how you can make event handlers actually WORK with dynamically-added controls. This article may seem (and probably is) a beginner-level one, but I think it's essential to cover this issue. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fwww.dotnetzone.gr%2fcs%2fblogs%2fsfilip%2farchive%2f2007%2f11%2f08%2fdynamically-adding-controls-and-assigning-event-handlers-to-web-forms-aspx-pages.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fwww.dotnetzone.gr%2fcs%2fblogs%2fsfilip%2farchive%2f2007%2f11%2f08%2fdynamically-adding-controls-and-assigning-event-handlers-to-web-forms-aspx-pages.aspx" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/aspnet/Dynamically_adding_controls_to_ASPX_pages_web_forms_and_assigning_ev</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/aspnet/Dynamically_adding_controls_to_ASPX_pages_web_forms_and_assigning_ev</guid>
      <pubDate>Thu, 08 Nov 2007 13:00:13 GMT</pubDate>
    </item>
    <item>
      <title>Unit test pattern for event raising</title>
      <description>Use of C# anonymous delegates to easily test for an event firing. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fwww.nervoustych.com%2fblog%2fPermaLink%2cguid%2cca963656-efd6-4269-a53f-8ddfe4752533.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fwww.nervoustych.com%2fblog%2fPermaLink%2cguid%2cca963656-efd6-4269-a53f-8ddfe4752533.aspx" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/unittesting/Unit_test_pattern_for_event_raising</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/unittesting/Unit_test_pattern_for_event_raising</guid>
      <pubDate>Sat, 09 Jun 2007 05:01:01 GMT</pubDate>
    </item>
    <item>
      <title>Solving the Problem with Events: Weak Event Handlers</title>
      <description>One of the greatest frustration of working with delegates and events is that they can potentially cause memory leaks if they aren't unhooked. In this article, we will solve this problem in a variety of ways to get the best performance, memory use and syntax. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fdiditwith.net%2fPermaLink%2cguid%2caacdb8ae-7baa-4423-a953-c18c1c7940ab.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fdiditwith.net%2fPermaLink%2cguid%2caacdb8ae-7baa-4423-a953-c18c1c7940ab.aspx" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/csharp/Solving_the_Problem_with_Events_Weak_Event_Handlers</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/csharp/Solving_the_Problem_with_Events_Weak_Event_Handlers</guid>
      <pubDate>Sat, 24 Mar 2007 12:01:01 GMT</pubDate>
    </item>
    <item>
      <title>Catch-up Events</title>
      <description>Catch-up Events in ASP.NET - an example of how you can see how it all works. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fvaultofthoughts.net%2fCatchupEvents.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fvaultofthoughts.net%2fCatchupEvents.aspx" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/aspnet/Catch_up_Events</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/aspnet/Catch_up_Events</guid>
      <pubDate>Wed, 07 Mar 2007 21:01:01 GMT</pubDate>
    </item>
    <item>
      <title>Catch-up Events</title>
      <description>Catch-up Events in ASP.NET - an example of how you can see how it all works. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fvaultofthoughts.net%2fCatchupEvents.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fvaultofthoughts.net%2fCatchupEvents.aspx" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/aspnet/Catch_up_Events</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/aspnet/Catch_up_Events</guid>
      <pubDate>Wed, 07 Mar 2007 21:01:01 GMT</pubDate>
    </item>
    <item>
      <title>Upcoming Northeast (USA) Developer Events</title>
      <description>Here's a listing of many of the upcoming events in the New England and upstate NY regions potentially of interest to .NET developers. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fblogs.msdn.com%2fcbowen%2farchive%2f2007%2f01%2f22%2fupcoming-developer-events-in-the-northeast.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fblogs.msdn.com%2fcbowen%2farchive%2f2007%2f01%2f22%2fupcoming-developer-events-in-the-northeast.aspx" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/events/Upcoming_Northeast_USA_Developer_Events</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/events/Upcoming_Northeast_USA_Developer_Events</guid>
      <pubDate>Mon, 22 Jan 2007 13:35:29 GMT</pubDate>
    </item>
    <item>
      <title>Video: Creating Custom Events and Delegates with C#</title>
      <description>It's no secret that events and delegates play a crucial role in the .NET framework.  Without them it would be hard to handle user input or notify other objects when an action occurs.  In this video Dan Wahlin outlines the fundamentals of creating a custom class that exposes an event and a delegate.  The video also demonstrates how to create a custom  EventArgs class and how events can be consumed using C#. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fweblogs.asp.net%2fdwahlin%2farchive%2f2007%2f01%2f17%2fvideo-creating-custom-events-and-delegates-with-c.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fweblogs.asp.net%2fdwahlin%2farchive%2f2007%2f01%2f17%2fvideo-creating-custom-events-and-delegates-with-c.aspx" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/csharp/Video_Creating_Custom_Events_and_Delegates_with_C</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/csharp/Video_Creating_Custom_Events_and_Delegates_with_C</guid>
      <pubDate>Fri, 19 Jan 2007 07:31:01 GMT</pubDate>
    </item>
    <item>
      <title>C# Delegates and Events </title>
      <description>Learn to use C# delegates and events. Excerpt: n programming, you are often faced with situations where you need to execute a particular action, but you don't know in advance which method, or even which object, you'll want to call upon to execute it. For example, a button might know that it must notify some object when it is pushed, but it might not know which object or objects need to be notified. Instead of wiring the button to a particular object, you will connect the button to a delegate and then resolve that delegate to a particular method when the program executes. 
In the early, dark, and primitive days of computing, a program would begin execution and then proceed through its steps until it completed. If the user was involved, the interaction was strictly controlled and limited to filling in fields. 
Today's GUI programming model requires a different approach, known as event driven programming. A modern program presents the user interface and waits for the user to take an action. The user might take many different actions, such as choosing among menu selections, pushing buttons, updating text fields, clicking icons, and so forth. Each action causes an event to be raised. Other events can be raised without direct user action, such as events that correspond to timer ticks of the internal clock, email being received, file-copy operations completing, etc. 
An event is the encapsulation of the idea that &amp;quot;something happened&amp;quot; to which the program must respond. Events and delegates are tightly coupled concepts because flexible event handling requires that the response to the event be dispatched to the appropriate event handler. An event handler is typically implemented in C# via a delegate. Delegates are also used as callbacks so that one class can say to another &amp;quot;do this work and when you're done, let me know.&amp;quot; 
 &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fen.csharp-online.net%2fDelegates_and_Events"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fen.csharp-online.net%2fDelegates_and_Events" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/csharp/C_Delegates_and_Events_1</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/csharp/C_Delegates_and_Events_1</guid>
      <pubDate>Wed, 29 Nov 2006 03:21:45 GMT</pubDate>
    </item>
    <item>
      <title>CodeMash session list</title>
      <description>The session list for a great looking conference in Ohio. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2ffrazzleddad.blogspot.com%2f2006%2f11%2fcodemash-session-list-is-close-to.html"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2ffrazzleddad.blogspot.com%2f2006%2f11%2fcodemash-session-list-is-close-to.html" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/events/CodeMash_session_list</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/events/CodeMash_session_list</guid>
      <pubDate>Mon, 27 Nov 2006 12:01:01 GMT</pubDate>
    </item>
    <item>
      <title>Event Accessors, You can encapsulate events too ;)</title>
      <description>This is another &amp;quot;How I missed this&amp;quot; kind of things,
All of us know Accessors like properties &amp;amp; indexers, and almost everybody says that it applies for all data types, but almost nobody knows that events have its own accessors &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fspellcoder.com%2fblogs%2fbashmohandes%2farchive%2f2006%2f11%2f21%2f2432.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fspellcoder.com%2fblogs%2fbashmohandes%2farchive%2f2006%2f11%2f21%2f2432.aspx" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/tipsandtricks/Event_Accessors_You_can_encapsulate_events_too</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/tipsandtricks/Event_Accessors_You_can_encapsulate_events_too</guid>
      <pubDate>Wed, 22 Nov 2006 10:31:01 GMT</pubDate>
    </item>
    <item>
      <title>C# Delegates and Events</title>
      <description>Learn all about C# delegates and events. Excerpt: A delegate is a .NET class that encapsulates a method, but not in the same way other classes encapsulate methods. A delegate actually stores the address of a method that is contained in some other class. So, a delegate is really the equivalent of a function pointer in C++. However, they are also far more than that. In this article, I explain the many uses of delegates. I begin with a simple example using a delegate to invoke a method. Then, I show several other uses of delegates including multicast delegates, thread delegates, anonymous methods, asynchronous method calls, events, and Win32 callbacks.
 &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fen.csharp-online.net%2fCSharp_Delegates_and_Events"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fen.csharp-online.net%2fCSharp_Delegates_and_Events" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/csharp/C_Delegates_and_Events</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/csharp/C_Delegates_and_Events</guid>
      <pubDate>Mon, 20 Nov 2006 07:26:32 GMT</pubDate>
    </item>
    <item>
      <title>UpdatePanel Data Transfer and the client side page life cycle</title>
      <description>This post shows the data transfer format used by the updatepanel as well as the client side page life cycle events beginRequest and endRequest. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fmorewally.com%2fcs%2fblogs%2fwallym%2farchive%2f2006%2f11%2f01%2f470.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fmorewally.com%2fcs%2fblogs%2fwallym%2farchive%2f2006%2f11%2f01%2f470.aspx" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/ajax/UpdatePanel_Data_Transfer_and_the_client_side_page_life_cycle</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/ajax/UpdatePanel_Data_Transfer_and_the_client_side_page_life_cycle</guid>
      <pubDate>Fri, 03 Nov 2006 12:01:02 GMT</pubDate>
    </item>
    <item>
      <title>Event Properties - Memory Efficient Events</title>
      <description>Description of how to define events in a more memory efficient way. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fvaultofthoughts.net%2fEventPropertiesMemoryEfficientEvents.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fvaultofthoughts.net%2fEventPropertiesMemoryEfficientEvents.aspx" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/csharp/Event_Properties_Memory_Efficient_Events</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/csharp/Event_Properties_Memory_Efficient_Events</guid>
      <pubDate>Mon, 23 Oct 2006 11:01:01 GMT</pubDate>
    </item>
    <item>
      <title>Event Properties - Memory Efficient Events</title>
      <description>Description of how to define events in a more memory efficient way. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fvaultofthoughts.net%2fEventPropertiesMemoryEfficientEvents.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fvaultofthoughts.net%2fEventPropertiesMemoryEfficientEvents.aspx" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/csharp/Event_Properties_Memory_Efficient_Events</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/csharp/Event_Properties_Memory_Efficient_Events</guid>
      <pubDate>Mon, 23 Oct 2006 11:01:01 GMT</pubDate>
    </item>
  </channel>
</rss>