asp.net.ph

HtmlInputControl.Name Property

System.Web.UI.HtmlControls Namespace   HtmlInputControl Class


Sets or retrieves the identifier name for the HtmlInputControl.

Syntax


Inline <input name = strName ... >
Script HtmlInputControl.Name [ = strName ]

Property Value


strName String specifying the identifier name for the HtmlInputControl.

The property is read/write with no default value.

Remarks

Use this property to identify a specific HtmlInputControl.

To be submitted with the data associated with a <form>, each of the form input controls must have a Name and a valid Value. Only controls with a valid name/value pair are sent with the HTTP Request message to the receiving program for processing.

These name/value pairs are then accessible on the server via the Request.Params, Request.Form, or Request.QueryString collections, as described below.

When submitted with the form data, the value of an HtmlInputControl is exposed on the server as

Request.Params [ controlName ] 
  C# VB

Alternatively, when sent with a form using Post, the value of this property can be accessed using

Request.Form [ controlName ] 
  C# VB

When sent with a form using Get, the value of this property can be accessed using

Request.QueryString [ controlName ] 
  C# VB

NOTE: The control name is required only if you will use the Request collections to process the form data.

If not specified, this property returns the value of the UniqueID property.

See Also

HtmlInputControl Members   Value   Request.Params   Request.Form   Request.QueryString Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 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 asp.net.ph