free e- mail
thaimail
hotmail
yahoo
siam2you
thammasat
Home
Visual Basic
Active Server Page
JavaScript
Network
Other
Active Server Pages.
Request Object
All Objects
All Collections
PROPERTY: Request.TotalBytes
Request.
TotalBytes
The
TotalBytes
property is a read-only value that specifies the total number of bytes sent by the client to the server in the body of the HTTP request.
The value returned by
TotalBytes
can be used as the argument of
Request.BinaryRead(Count)
.
Code:
-------------------File1.html-----------------
<HTML>
<HEAD>
</HEAD>
<BODY>
<FORM ACTION="File2.asp" METHOD="POST">
Name:<INPUT TYPE="Text" NAME="name" MAXLENGTH="30"><BR>
Age: <INPUT TYPE="Text" NAME="age" MAXLENGTH="10"><BR>
Sex: <INPUT TYPE="Text" NAME="sex" MAXLENGTH="10"><BR>
<INPUT TYPE="Submit" NAME="submit" VALUE="submit"><BR>
</FORM>
</BODY>
</HTML>
-------------------File2.asp------------------
<%
Dim ByteCount
ByteCount =
Request.TotalBytes
Response.Write("ByteCount = " & ByteCount & " bytes")
%>
Output
It is dependent on the data entered into the form.
For example, if Name=Bill, Age=56, and Sex=male.
ByteCount = 39 bytes
Copyright 2000 by Infinite Software Solutions, Inc.
Trademark Information
ASP - Link
ASP reference
B
C
D
E
F
G
Last update:
Copyright © 2001.Memo Wil@keo everything that I like Co.,Ltd.