System.Web Namespace HttpRequest Class
Specifies the length, in bytes, of content sent by the client.
[ VB ]
Public ReadOnly Property ContentLength As Integer
[ C# ]
public int ContentLength {get;}
[ C++ ]
public: __property int get_ContentLength ( );
[ JScript ]
public function get ContentLength ( ) : int;
The length of content sent by the client.
The following example shows the simplest way to retrieve and display the value representing the content length of the incoming request.
<%= Request.ContentLength %>
Show me
HttpRequest Members