InternetUnicodeHTMLCSSScalable Vector Graphics (SVG)Extensible Markup Language (xml)ASP.NetDocument Object Model (DOM)JavaScript ASP ObjectResponse Object Draft for Information Only
Content
Request Object
Request ObjectThe main function of Request object is the retrieving of HTTP request variables from the client. Request.Form CollectionRequest.Form Collection retrieves the element values of a form which is sent in the body of HTTP request with a form using the POST method. Syntax:Request.Form(element)[(index)|.Count] Or in an ASP file. Imply <% Request.Form(element)[(index)|.Count] %> Parameters:element The parameter "element" is the name of the form element in the form collection to be retrieved. The data type of "element" is string and is enclosed by quotation marks (" "). index The optional parameter "index" is the number of the index of a form element with multiple values in the form collection to be retrieved. The data type of "index" is an integer and the range is from 1 to Request.Form(element).Count .Count The parameter "Count" is the optional information of the parameter "element" with delimeter ".". The parameter "Count" is a read-only attribute to return the total number of the available values of the parameter " element". Remarks:The HTTP form collection is the string posted to the HTTP request body with a form using the POST method. Although HTTP form collections are usually generated by a response page output, HTTP form collection are only strings contained in an request headers. The values of HTTP form collection can also be generated by any user. Therefore header data or user input should be encoded or be validated before using. The Form Collection is indexed by the names of the parameter elements in the request body. With the Request.Form Collection, the value of form element can be retrieved by name. For element with multiple values, the value of Request.Form(element) will be in form of an array of all values of the element in the Form Collection. And the number of multiple values of the element can be obtained by Request.Form(element).Count. For single value varible, Request.Form(element).Count equal to 1. If the variable does not exist, Request.Form(element).Count equal to 0. And therefore the multiple values of a variable can be referenced by the parameter "index", Response.Form(element)(index). and the range of the index is from 1 to Response.Form(element).Count. However, if the index is not specified for a multiple values element, the Request.Form(element) will return all values in the form of comma-delimited string. Besides, if there is no specified element for the Request.Form(), the Request.Form() will return the unparsed Form Collection data. But when post data more than 100KB, the Request.Form cannot be used. And should be rewritten by using the Request.Binary Read method. Since the multiple values of a element is in the form of an array, the values of the element can be retrieved using a for index loop or a for each element loop. And for the name of the form element, a for each element loop should be used. Examples:
©sideway ID: 120200018 Last Updated: 2/7/2012 Revision: 0 Ref: References
Latest Updated Links
|
Home 5 Business Management HBR 3 Information Recreation Hobbies 8 Culture Chinese 1097 English 339 Reference 79 Computer Hardware 249 Software Application 213 Digitization 32 Latex 52 Manim 205 KB 1 Numeric 19 Programming Web 289 Unicode 504 HTML 66 CSS 65 SVG 46 ASP.NET 270 OS 429 DeskTop 7 Python 72 Knowledge Mathematics Formulas 8 Set 1 Logic 1 Algebra 84 Number Theory 206 Trigonometry 31 Geometry 34 Calculus 67 Engineering Tables 8 Mechanical Rigid Bodies Statics 92 Dynamics 37 Fluid 5 Control Acoustics 19 Natural Sciences Matter 1 Electric 27 Biology 1 |
Copyright © 2000-2024 Sideway . All rights reserved Disclaimers last modified on 06 September 2019