投稿者 kojiro  (社会人) 投稿日時 2020/7/5 10:46:04
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="vol.aspx.vb" Inherits="phas21.vol" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style type="text/css">
        @media screen{
            .PrintOnly{
                display:none;
            }
            #ListBox1{
                width: 558px;
                height: 333px;
            }
        }
        @media print{
            .ScreenOnly{
                display:none;
            }
            #BulletedList1{
                list-style:none;
            }
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
                  <asp:Label ID="Label1" runat="server" Font-Size="Larger" Text="地域への情報"></asp:Label>
               <br />
            <br />
              地域選択&nbsp;
            <asp:DropDownList ID="ddList_area" runat="server" Height="20px" Width="120px" AppendDataBoundItems="True" AutoPostBack="True">
            </asp:DropDownList>
            &nbsp;<asp:Button ID="menu_exe" runat="server" Text="メニューに戻る" Width="109px" />
            <br />
            <br />
&nbsp;&nbsp;&nbsp;   地域<br />
                    <asp:ListBox ID="ListBox_area" runat="server" Width="120px"></asp:ListBox>
            <br />
            <br />
                    <asp:Button ID="clear_exe" runat="server" Text="クリア" Width="107px" />
            <br />
            <br />
            <br />
             複数地域名 <asp:DropDownList ID="ddList_HC" runat="server" AppendDataBoundItems="True" AutoPostBack="True" Height="20px" Width="120px">
            </asp:DropDownList>
            <br />
            <br />
            <br />
              出力&nbsp;&nbsp;&nbsp;  <asp:Button ID="data_output" runat="server" Height="20px" Text="データ" Width="120px" />
            <br />
            <br />
              Access Counter <asp:Label ID="lbl_access_c" runat="server" Text="0"></asp:Label>
            <br />
            <br />
&nbsp;&nbsp; 結果&nbsp;&nbsp;&nbsp;&nbsp;
            <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:ListBox ID="ListBox1" runat="server" Height="333px" Width="558px"></asp:ListBox>
            <br />
            <br />
            <br />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <br />
        </div>
         <div class="PrintOnly">
            <asp:BulletedList ID="BulletedList1" runat="server">
        </asp:BulletedList>
        </div>
    </form>
</body>
</html>
ですが、リストボックスの内容やweb上のツールも印刷されます。