ASP.NET(vb.net) Request.TotalBytes() - Request Object - Request.TotalBytes() : The TotalBytes property specifies the total number of bytes that the client sent in the body of the request. This property is read-only.
ShotDev Focus:
- ASP.NET(vb.net) Request.TotalBytes() - Request Object
Syntax
Counter= Request.TotalBytes
Example
AspNetRequestTotalBytes.aspx
<%@ Page Language="VB" %> <script runat="server"> Sub btnButton1_Click(sender As Object, e As EventArgs) Me.lblText.Text = Request.TotalBytes & " Bytes" End Sub </script> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <form runat="server"> <asp:TextBox id="TextBox1" runat="server"></asp:TextBox> <br /> <asp:Button id="btnButton1" onclick="btnButton1_Click" runat="server" Text="Button"></asp:Button> <hr /> <asp:Label id="lblText" runat="server"></asp:Label><br> </form> </body> </html>
Screenshot