HtmlElementCollection::GetElementsByName Method (String^)
.NET Framework (current version)
Gets a collection of elements by their name.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- name
-
Type:
System::String^
The name or ID of the element.
Return Value
Type: System.Windows.Forms::HtmlElementCollection^An HtmlElementCollection containing the elements whose Name property match name.
While the Id property of an HtmlElement must be unique, multiple elements can use the same Name property.
The following code example finds a FORM object using its name, and submits its data to the server programmatically. The code example requires that your application hosts a WebBrowser control named webBrowser1.
.NET Framework
Available since 2.0
Available since 2.0
Show: