ControlCollection.IndexOf Method
.NET Framework 2.0
Retrieves the index of a specified Control object in the collection.
Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
public int IndexOf ( Control value )
public function IndexOf ( value : Control ) : int
Not applicable.
Parameters
- value
The Control for which the index is returned.
Return Value
The index of the specified server control. If the server control is not currently a member of the collection, it returns -1.Use this method to determine the index location of the specified server control in the ControlCollection object.
Community Additions
ADD
Show: