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.QueryString CollectionRequest.QueryString Collection retrieves the variable values of query string which is sent in the HTTP request. Syntax:Request.QueryString(variable)[(index)|.Count] Or in an ASP file. Imply <% Request.QueryString(variable)[(index)|.Count] %> Parameters:variable The parameter "variable" is the name of the variable in the HTTP query string to be retrieved. The data type of "variable" is string and is enclosed by quotation marks (" "). index The optional parameter "index" is the number of the index of a variable with multiple values in the HTTP query string to be retrieved. The data type of "index" is an integer and the range is from 1 to Request.QueryString(variable).Count .Count The parameter "Count" is the optional information of the parameter "variable" with delimeter ".". The parameter "Count" is a read-only attribute to return the total number of the available values of the parameter " variable". Remarks:The HTTP query string is the string following the question mark (?) in an HTTP request. For example: http://127.0.0.1/default.asp?qrystring=qrystringtvalue Although query string are usually generated by a response page output, query string are only strings contained in an request headers. The values of query strings can also be generated by any user. Therefore header data or user input should be encoded or be validated before using. The QueryString Collection is the detailed version of the Query_String variable of the ServerVariables Collection. With the Request.QueryString Collection, the value of query string can be retrieved by name. For variable with multiple values, the value of Request.QueryString(variable) will be in form of an array of all values of the variable in the Query_String. And the number of multiple values of the variable can be obtained by Request.QueryString(variable).Count. For single value varible, Request.QueryString(variable).Count equal to 1. If the variable does not exist, Request.QueryString(variable).Count equal to 0. And therefore the multiple values of a variable can be referenced by the parameter "index", Request.QueryString(variable)(index). and the range of the index is from 1 to Request.QueryString(variable).Count. However, if the index is not specified for a multiple values variable, the Request.QueryString(variable) will return all values in the form of comma-delimited string. Besides, if there is no specified variable for the Request.QueryString(), the Request.QueryString() will return the unparsed QueryString data. Since the multiple values of a variable is in the form of an array, the values of the variable can be retrieved using a for index loop or a for each element loop. Examples:
©sideway ID: 120200017 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