web 2.0

ASP.NET(vb.net) Request.TotalBytes() - Request Object

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

ASP.NET(vb.net) Request.TotalBytes() - Request Object
.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.