Freshers Aptitude technical questions
Freshers Job Alert
Bookmark and Share

  Retrieve element array

The Form collection is indexed by the names of the parameters in the request body. The value of Request.Form( element ) is an array of all the values of element that occur in the request body. You can determine the number of values of a parameter by calling Request.Form( element ).Count . If a parameter does not have multiple values associated with it, the count is 1. If the parameter is not found, the count is 0.

To reference a single value of a form element that has multiple values, you must specify a value for index . The index parameter may be any number between 1 and Request.Form( element ).Count . If you reference one of multiple form parameters without specifying a value for index , the data is returned as a comma-delimited string.