进度条问题

时间:2011-03-31 08:35:51

标签: c# asp.net

我必须在我的网页上设置一个进度条,从下拉列表中选择任何驱动器信息时会显示已用空间和可用空间。我怎样才能做到这一点。可以任意给我发送代码

这是我的aspx代码。

<fieldset style="width:1000px"> 
            <legend> Drive Info </legend> 

       <table style="width:100%;">
        <tr>
        <td>
          <asp:Label ID="Label1" runat="server" Text="Select Drive"  ></asp:Label>
       </td>
       <td>

       <asp:DropDownList ID="DropDownList1" runat="server"   onselectedindexchanged="DropDownList1_SelectedIndexChanged" 
      AutoPostBack="True" Height="24px"  ondatabinding="Page_Load" ondatabound="Page_Load"  
      Width="189px" ViewStateMode="Enabled" AppendDataBoundItems="True">
      <asp:ListItem Selected="True">--Select--</asp:ListItem>
     </asp:DropDownList>
     </td>
     </tr>
     <tr>
     <td>

      <asp:Label ID="Label2" runat="server" Text="Disk Name"></asp:Label>
      </td>
      <td>
      <asp:Label ID="Label8" runat="server" Text="Label"></asp:Label>
      </td>
      </tr>

      <tr>
       <td>
       <asp:Label ID="Label3" runat="server" Text="Used Space"></asp:Label>
      </td>
      <td>
            <asp:Label ID="Label9" runat="server" Text="Label"></asp:Label>
      </td>
      </tr>

      <tr>
      <td>

       <asp:Label ID="Label4" runat="server" Text="Free Space"></asp:Label>
     </td>
     <td>
         <asp:Label ID="Label10" runat="server" Text="Label"></asp:Label>
    </td>
    </tr>

    <tr>
    <td>
         <asp:Label ID="Label5" runat="server" Text="Volume Name"></asp:Label>
     </td>

     <td>
        <asp:Label ID="Label11" runat="server" Text="Label"></asp:Label>
     </td>
     </tr>

     <tr>
     <td>
            <asp:Label ID="Label6" runat="server" Text="System Name"></asp:Label>
    </td>
     <td>
            <asp:Label ID="Label12" runat="server" Text="Label"></asp:Label>
     </td>
     </tr>

     <tr>
     <td>
       <asp:Label ID="Label7" runat="server" Text="TotalSize"></asp:Label>
     </td>
     <td>
        <asp:Label ID="Label13" runat="server" Text="Label"></asp:Label> 

      </td>
      </tr>
      </table>



     <%--<table border='0' cellspacing='0' cellpadding='0' height='10px' style="background-color:#B5CCFF" >
        <tr>
            <td height='20px' width='5' style="background-color:Blue"></td>
            <td width='5' style="background-color:Blue"></td>
            <td width='5' style="background-color:Blue"></td>
            <td width='5' style="background-color:Blue"></td>
            <td width='5' style="background-color:Blue"></td>
            <td width='5' style="background-color:Blue"></td>
            <td width='5' style="background-color:Blue"></td>
            <td width='5' style="background-color:Blue"></td>
            <td width='5' style="background-color:Blue"></td>
            <td width='5'></td>
            <td width='5'></td>
            <td width='5'></td>
            <td width='5'></td>
            <td width='5'></td>
            <td width='5'></td>
            <td width='5'></td>
            <td width='5'></td>
            <td width='5'></td>
            <td width='5'></td>
            <td width='5'></td>
 </tr>
 </table>--%>

3 个答案:

答案 0 :(得分:2)

答案 1 :(得分:0)

以下是类似问题的答案

Progress Bar

尼基塔,您必须在更新面板中添加下拉列表。

<asp:updatepanel id="uppanel1" runat="server">
  <asp:....................>
</asp:updatepanel>
<asp:updateprogress>
   ///////////// add the progress bar here.....
</asp:updateprogress>

答案 2 :(得分:0)

 <fieldset style="width:1000px"> 
            <legend> Drive Info </legend> 

       <table style="width:100%;">
        <tr>
        <td>
          <asp:Label ID="Label1" runat="server" Text="Select Drive"  ></asp:Label>
       </td>
       <td>

       <asp:DropDownList ID="DropDownList1" runat="server"   onselectedindexchanged="DropDownList1_SelectedIndexChanged" 
      AutoPostBack="True" Height="24px"  ondatabinding="Page_Load" ondatabound="Page_Load"  
      Width="189px" ViewStateMode="Enabled" AppendDataBoundItems="True">
      <asp:ListItem Selected="True">--Select--</asp:ListItem>
     </asp:DropDownList>
     </td>
     </tr>
     <tr>
     <td>

      <asp:Label ID="Label2" runat="server" Text="Disk Name"></asp:Label>
      </td>
      <td>
      <asp:Label ID="Label8" runat="server" Text="Label"></asp:Label>
      </td>
      </tr>

      <tr>
       <td>
       <asp:Label ID="Label3" runat="server" Text="Used Space"></asp:Label>
      </td>
      <td>
            <asp:Label ID="Label9" runat="server" Text="Label"></asp:Label>
      </td>
      </tr>

      <tr>
      <td>

       <asp:Label ID="Label4" runat="server" Text="Free Space"></asp:Label>
     </td>
     <td>
         <asp:Label ID="Label10" runat="server" Text="Label"></asp:Label>
    </td>
    </tr>

    <tr>
    <td>
         <asp:Label ID="Label5" runat="server" Text="Volume Name"></asp:Label>
     </td>

     <td>
        <asp:Label ID="Label11" runat="server" Text="Label"></asp:Label>
     </td>
     </tr>

     <tr>
     <td>
            <asp:Label ID="Label6" runat="server" Text="System Name"></asp:Label>
    </td>
     <td>
            <asp:Label ID="Label12" runat="server" Text="Label"></asp:Label>
     </td>
     </tr>

     <tr>
     <td>
       <asp:Label ID="Label7" runat="server" Text="TotalSize"></asp:Label>
     </td>
     <td>
        <asp:Label ID="Label13" runat="server" Text="Label"></asp:Label> 

      </td>
      </tr>
      </table>



     <%--<table border='0' cellspacing='0' cellpadding='0' height='10px' style="background-color:#B5CCFF" >
        <tr>
            <td height='20px' width='5' style="background-color:Blue"></td>
            <td width='5' style="background-color:Blue"></td>
            <td width='5' style="background-color:Blue"></td>
            <td width='5' style="background-color:Blue"></td>
            <td width='5' style="background-color:Blue"></td>
            <td width='5' style="background-color:Blue"></td>
            <td width='5' style="background-color:Blue"></td>
            <td width='5' style="background-color:Blue"></td>
            <td width='5' style="background-color:Blue"></td>
            <td width='5'></td>
            <td width='5'></td>
            <td width='5'></td>
            <td width='5'></td>
            <td width='5'></td>
            <td width='5'></td>
            <td width='5'></td>
            <td width='5'></td>
            <td width='5'></td>
            <td width='5'></td>
            <td width='5'></td>
 </tr>
 </table>--%>