Limit download speed in ASP.NET (VBASPNETLimitDownloadSpeed)

The code sample illustrates how to limit the download speed in ASP.NET via coding.

VB.NET (58.1 KB)
11,951 times
Add to favorites
E-mail Twitter Digg Facebook
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="VBASPNETLimitDownloadSpeed._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="" >
<head runat="server">
    <form id="form1" runat="server">
        <asp:DropDownList ID="ddlDownloadSpeed" runat="server">
            <asp:ListItem Value="20">20 Kb/s</asp:ListItem>
            <asp:ListItem Value="50">50 Kb/s</asp:ListItem>
            <asp:ListItem Value="80">80 Kb/s</asp:ListItem>
        <asp:Button ID="btnDownload" runat="server" Text="Download" />