Reflection
Navigating Event


Occurs immediately before navigation to a new page.
Syntax
'Declaration
 
<SuppressMessageAttribute(Category="Microsoft.Design", 
   CheckId="CA1009:DeclareEventHandlersCorrectly", 
   Scope="", 
   Target="", 
   MessageId="", 
   Justification="")>
Event Navigating As NavigatingEventHandler
'Usage
 
Dim instance As IWebControl
Dim handler As NavigatingEventHandler
 
AddHandler instance.Navigating, handler
[SuppressMessage(Category="Microsoft.Design", 
   CheckId="CA1009:DeclareEventHandlersCorrectly", 
   Scope="", 
   Target="", 
   MessageId="", 
   Justification="")]
event NavigatingEventHandler Navigating
Event Data

The event handler receives an argument of type NavigatingEventArgs containing data related to this event. The following NavigatingEventArgs properties provide information specific to this event.

PropertyDescription
CancelCancel property to indicate whether the user wants to cancel the navigation. Set Cancel property to true to cancel the navigation.  
TargetFrameNameThe target frame in which the new Web page is displayed.  
UrlThe URL to which the WebCOntrol is navigating.  
See Also