본문 바로가기

ASP.NET 기초 게시판/File_Upload&download_Board

파일업로드&다운로드 게시판_Default1.aspx

<script type="text/jscript" language="JavaScript">
    function winopen(Default2)
    {
        window.open(Default2, "pop", "width=350,height=200,history=no,resizable=no,status=no,scrollbars=yes,menubar=no");
    }
</script>

    <div>
    <asp:Button ID="Button1" runat="server" Text="생성" onclick="Button1_Click" />
    <asp:Label ID="DateBaseStatus" runat="server" Text="아래버튼을 클릭하세요" ></asp:Label>
    <asp:Button ID="btn_DataBaseOpen" runat="server" Text="DataBase" onclick="btn_DataBaseOpen_Click" />
    <asp:Button ID="btn_DatabaseClose" runat="server" Text="DataBase" onclick="btn_DatabaseClose_Click" />
    </div>
    </form>
        <table>
            <tr>
                <th width="200" rowspan="2" align="center">발송일</th>
                <th width="300" colspan="2" align="center">학사모</th>
                <th width="300" colspan="2" align="center">돈자모</th>
                <th width="200" rowspan="2" align="center">등록일</th>
            </tr>
            <tr>
                <th align="center">문서</th>
                <th align="center">메일</th>
                <th align="center">문서</th>
                <th align="center">메일</th> 
            </tr>
            <asp:Repeater ID="DataListTable" runat="server" OnItemDataBound="DataListTable_ItemDataBound">
            <ItemTemplate>
            <tr>
                <td width="200" align="center"><asp:Label ID="deldate" runat="server" Text=""></asp:Label></td>
                <td width="150" align="center"><asp:Label ID="hakdoc" runat="server" Text=""></asp:Label></td>
                <td width="150" align="center"><asp:Label ID="hakmail" runat="server" Text=""></asp:Label></td>
                <td width="150" align="center"><asp:Label ID="dondoc" runat="server" Text=""></asp:Label></td>
                <td width="150" align="center"><asp:Label ID="donmail" runat="server" Text=""></asp:Label></td>
                <td width="200" align="center"><asp:Label ID="regdate" runat="server" Text=""></asp:Label></td>
            </tr>
          
            </ItemTemplate>
            <AlternatingItemTemplate>
            <tr style="background-color: ButtonFace;">
                 <td width="200" align="center"><asp:Label ID="deldate" runat="server" Text="X"></asp:Label></td>
                <td width="150" align="center"><asp:Label ID="hakdoc" runat="server" Text=""></asp:Label></td>
                <td width="150" align="center"><asp:Label ID="hakmail" runat="server" Text="X"></asp:Label></td>
                <td width="150" align="center"><asp:Label ID="dondoc" runat="server" Text="X"></asp:Label></td>
                <td width="150" align="center"><asp:Label ID="donmail" runat="server" Text="X"></asp:Label></td>
                <td width="200" align="center"><asp:Label ID="regdate" runat="server" Text="X"></asp:Label></td>
            </tr>
            </AlternatingItemTemplate>
            </asp:Repeater>
        </table>
</body>
</html>