| |||||
AdCreatedEventHandler DelegateSystem.Web.UI.WebControls Namespace Represents the method that will handle the AdCreated event of an AdRotator. [ VB ] Public Delegate Sub AdCreatedEventHandler ( _ ByVal src As Object, _ ByVal e As AdCreatedEventArgs _ ) [ C# ] public delegate void AdCreatedEventHandler ( object src, AdCreatedEventArgs e ); [ C++ ] public __gc __delegate void AdCreatedEventHandler ( Object* src, AdCreatedEventArgs* e ); In [ JScript ], you can use the delegates in the .NET Framework, but you cannot define your own. ParametersThe declaration of your event handler must have the same parameters as the declaration for the AdCreatedEventHandler delegate.
RemarksThe AdCreated event is raised whenever the AdRotator renders an advertisement on the page. When you create an AdCreatedEventHandler delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. ExampleThe following example demonstrates how to specify and code a handler for the AdCreated event, and is basically implemented as follows.
See Also |
| ||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme