Implements Directive in ASP.Net

The @Implements directive gets the Asp.Net page to implement a specified .NET framework interface. The only single attribute is Interface, helps to specify the .NET Framework interface. When the Asp.Net page or user control implements an interface, it has direct access to all its events, methods and properties.

@Implements Directive

<%@ Implements interface="ValidInterfaceName" %>

interface: The interface to be implemented on the page or user control.

<%@ Implements Interface=”System.Web.UI.IValidator” %>

@ Implements directive to access the six properties of the IWebPart interface.
Tags: , , ,
Hot on Web:


About author