Search - Articles
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Tuesday, March 03, 2009
Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 


Home >Search > Articles & Samples > ASP.Net > Event Handling


Search:
What's New - What's Hot
What is an ASHX file Handler or web handler     
Total Hits: 133  |  Today: 0Author: Purushottam Rathore      Rating:  
Read Reviews | Write Review |  Your Rating: 

In ASP.NET, you probably spend most of your time creating .aspx files with .cs files as code behind or use .ascx files for your controls and .asmx files for web services. A web handler file works just like an aspx file except you are one step back away from the messy browser level where HTML and C# mix. One reason you would write an .ashx file instead of an .aspx file is that your output is not going to a browser but to an xml-consuming client of some kind....

ASP.NET Custom control to create Google Calendar Event hyperlinks     
Total Hits: 221  |  Today: 0Author: slolife      Rating:  
Read Reviews | Write Review |  Your Rating: 

Google recently released the Google Calendar application. If your website has event information, allow users to add the event to their own Google calendar easily with a Google Calendar event link....

Creating an Event Calendar     
Total Hits: 260  |  Today: 0Author: AzamSharp      Rating:  
Read Reviews | Write Review |  Your Rating: 

Our life is filled with events, lots of events. To accomplish most if not all we must schedule them on certain dates. This task is accomplished by marking the important dates on the calendar. In this article I will demonstrate how to create a very simple Event Calendar using ASP.NET....

Logging ASP.NET Application Shutdown Events     
Total Hits: 129  |  Today: 0Author: Scott Guthrie      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this article, Scott demonstrates how to log ASP.NET application shutdown events.
Someone on a listserv recently asked whether there was a way to figure out why and when ASP.NET restarts application domains. Specifically, he was looking for the exact cause of what was triggering them on his application in a production shared hosted environment (was it a web.config file change, a global.asax change, an app_code directory change, a directory delete change, max-num-compilations reached quota,...

Understanding event wire-ups in ASP.NET and Visual Studio     
Total Hits: 112  |  Today: 0Author: Jeff Putz      Rating:  
Read Reviews | Write Review |  Your Rating: 

Every now and then there's some confusion about how events are wired up in the structure of an ASP.NET page. This confusion is in part caused by the way that Visual Studio .NET adds events and the way that most books teach wiring up events....

Page Events: Order and PostBack     
Total Hits: 85  |  Today: 0Author: Paul Wilson      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article lists the complete lifecycle of ASP.NET Pages, including the postback sequence, and explains which method or event to use in common scenarios....

Custom Event Arguments     
Total Hits: 77  |  Today: 0Author: Philip Q      Rating:  
Read Reviews | Write Review |  Your Rating: 

You've probably seen custom event arguments in use, probably in the DataGrid section of ASP.NET. Custom event arguments allow you to create a class that you pass along with your events that contain extra information in them that you may want....

Generate a Google Site Map Using the HTTP 404 Handler     
Total Hits: 40  |  Today: 0Author: W. Kevin Hazzard.      Rating:  
Read Reviews | Write Review |  Your Rating: 

Using Microsoft Internet Information Server (IIS), when you designate a page to handle HTTP 404 (Not Found) errors on a website, you don't have to return HTTP 404 errors at all. Instead, you can return dynamic content with an HTTP 200 (OK) result instead. This is helpful when you want to build a sitemap.xml file to enhance the search engine performance for your website, for example. In this article, I'll show you how I did this for my own blog....

Handle Your Events - Perform Better     
Total Hits: 72  |  Today: 0Author: Timothy Khouri      Rating:  
Read Reviews | Write Review |  Your Rating: 

If you've ever looked into way Controls are done in ASP.NET by the actual .NET team you'll see some smart performance boosts that us foolish mortals (people not on the .NET team) may not be aware of. One of those techniques is to do your own "Event Accessors" which can really help keep your memory usage down on your web applications. There are a lot of benefits of doing this very simple thing....

Handling Events in Programatically Created DataGrids     
Total Hits: 39  |  Today: 0Author: Doug Seven      Rating:  
Read Reviews | Write Review |  Your Rating: 

I have been getting lots of questions lately on dealing with DataGrids embedded inside DataGrids. Specifically it seems that one of the big issues is how to have an OnItemCommand event handler that works with a programatically created DataGrid embedded in another DataGrid....

DataGrid Foreign Event Handling     
Total Hits: 90  |  Today: 0Author: Andrew Ventura MCAD/MCSD (.NET) & MCSE      Rating:  
Read Reviews | Write Review |  Your Rating: 

DataGrids seem to be very popular among all ASP.NET developers these days. I've seen whole series of articles and a lot powerful custom controls released for it. I personally think they are great as long as you manage your Viewstate size and don't try to think too much outside the box, or grid in this case. Anyhow, one thing that has bothered me is that it isn't easy to wire up events like, OnSelectedItemIndexChange, in template columns containing controls like the RadioButtonList or DropDownLis...

Event Handling Between Dynamically Loaded User Controls     
Total Hits: 226  |  Today: 0Author: Kyle Roche      Rating:  
Read Reviews | Write Review |  Your Rating: 

Handling events between custom User Controls that are available at design time is really no different from adding handlers for a button or dropdownlist.
What about custom User Controls that are added to the application at run time… in code? Let’s take a look at how to wire run time user controls with event handlers....

Event Bubbling From Web User Controls in ASP.NET (C#)     
Total Hits: 270  |  Today: 0Author: scott      Rating:  
Read Reviews | Write Review |  Your Rating: 

Some user controls are entirely self contained, for example, a user control displaying current stock quotes does not need to interact with any other content on the page. Other user controls will contain buttons to post back. Although it is possible to subscribe to the button click event from the containing page, doing so would break some of the object oriented rules of encapsulation. A better idea is to publish an event in the user control to allow any interested parties to handle the event....

CodeSnip: Handle Browser Close Event on the Server-Side     
Total Hits: 358  |  Today: 0Author: Bilal Haidar      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this article Bilal Haidar demonstrates how to handle the close event of the browser on the client side and execute a server side method on the server code....

Programming with delegates and events in .NET     
Total Hits: 205  |  Today: 0Author: Wim UYTTERSPROT      Rating:  
Read Reviews | Write Review |  Your Rating: 

Delegates are introduced in .NET as key entities that are not only used in event handling, but also in asynchronous programming and multithreading. Therefore, it is important to study the delegate syntax and grammar independently from the event handling mechanism. First question to answer is -what is a delegate? In order to answer this question, we have to differentiate the delegate object from the delegate class and the delegate reference....

Creating an Event Calendar     
Total Hits: 87  |  Today: 0Author: AzamSharp      Rating:  
Read Reviews | Write Review |  Your Rating: 

Our life is filled with events, lots of events. To accomplish most if not all we must schedule them on certain dates. This task is accomplished by marking the important dates on the calendar. In this article I will demonstrate how to create a very simple Event Calendar using ASP.NET....

Application & Session Events in the Global.asax File     
Total Hits: 270  |  Today: 0Author: Jeff Anderson      Rating:  
Read Reviews | Write Review |  Your Rating: 

Programmers familiar with ASP will know about the global.asa file. It's the place where application level events are handeled. The global.asax file is the ASP.Net equivalent and it can be found in the root directory of an ASP.Net application.
Here is the list of events you can call. By calling them you are actually overriding the event that is exposed by the HttpApplication base class....

How To Capture Web Events In log4net     
Total Hits: 240  |  Today: 0Author: Gabe Wishnie.      Rating:  
Read Reviews | Write Review |  Your Rating: 

With the release of ASP.NET 2.0 comes a powerful new diagnostics framework located under the System.Web.Management namespace. The intention of this new framework is to eliminate the need to use external logging libraries such as log4net. This article is not meant to be an overview of the new features available in ASP.NET but as a means to use the events provided by this system in combination with log4net. However for a great overview of the System.Web.Management namespace I would urge you to...

The Global.ASAX File     
Total Hits: 265  |  Today: 0Author: Philip Quinn      Rating:  
Read Reviews | Write Review |  Your Rating: 

ASP.NET has a match for the Classic ASP global.asa file and that is (following with .aspx tradition - Global.asax. If you remember what global.asa does, you pretty much have sorted what global.asax does. This article will go over that as well as explain some of the new and extended features that it comes with....

ASP.NET EventTarget Trapping ("which button was clicked?")     
Total Hits: 292  |  Today: 0Author: Peter A. Bromberg      Rating:  
Read Reviews | Write Review |  Your Rating: 

This is one that has come up so often, I thought it would be a good idea to illustrate it. What I am referring to is the "How can I tell which button fired the postback!" question. Well, the answer is there in the Docs if you take the time to look. I put up these little gems usually when a search of the web reveals NO usable example for what I'm trying to find an answer to. With my superior searching capability, which consists primarily of typing search terms into the Google main page with quota...


1  2  3  4  5  Next >> 


Disclaimer - Privacy
© 2002-2018 DevASP.net