topical media & game development

talk show tell print

mashup-amazon-15-Amazon-S3-Default.aspx / aspx



  <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
  
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
  <head runat="server">
      <title>Amazon S3 Demo</title>
      <link href="styles.css" rel="stylesheet" type="text/css" />
  </head>
  <body>
      <form id="form1" runat="server">
          <div class="siteHeading">
              Amazon S3 Utility</div>
          <div class="mainTable">
              <table>                
                  <tr>
                      <td colspan="2">
                          <h4>Bucket Operations:</h4></td>
                          <td rowspan="9"><strong>Results</strong><br />
              <asp:Label ID="lblResults" runat="server" Text="" Width="500px"></asp:Label></td>
                      
                  </tr>
                
                  <tr><td>
                      <strong>Enter Bucket Name:</strong></td><td>
              <asp:TextBox ID="txtBucketName" runat="server">ShanahanBucket</asp:TextBox></td></tr>
                  <tr>
                      <td colspan="2" style="text-align: center">
                          Click these buttons to Create, Delete or List the contents of the bucket named above.<br />
                      <asp:Button ID="cmdCreateBucket" runat="server" OnClick="cmdCreateBucket_Click" Text="Create Bucket" />&nbsp;
              <asp:Button ID="cmdDeleteBucket" runat="server" OnClick="cmdDeleteBucket_Click" Text="Delete Bucket" />&nbsp;
              <asp:Button ID="cmdShowContents" runat="server" OnClick="cmdShowContents_Click" Text="Show Bucket Contents" /></td>
                  </tr><tr><td><asp:Button ID="cmdListBuckets" runat="server" OnClick="cmdListBuckets_Click" Text="List All My Buckets" /></td><td>
                          <asp:Label ID="lblBuckets" runat="server" Text="Buckets Show Here" Width="431px"></asp:Label></td></tr>
                  <tr><td colspan="2"><h4>File Operations:</h4></td></tr>
                  <tr>
                      <td><b>Locate a file:</b>
                      </td>
                      <td>
                          <asp:FileUpload ID="myFileUpload" runat="server" /></td>
                  </tr>
                  <tr><td><b>Enter File Name:</b>
                      </td>                    
                      <td>
                          &nbsp;<asp:TextBox ID="txtKey" runat="server">ShanahansKey.jpg</asp:TextBox>
                          <asp:Button ID="cmdSubmit" runat="server" OnClick="cmdSubmit_Click" Text="Upload File" />
              <asp:Button ID="cmdDeleteFile" runat="server" OnClick="cmdDeleteFile_Click" Text="Delete File" /></td>
                  </tr>
                 <tr>
                      <td>
                          <h4>Utility Functions:</h4></td>
                      <td>
                          <asp:Button ID="cmdShowTime" runat="server" OnClick="cmdShowTime_Click" Text="Show Time" />
                          <br />
                          <br />
              <asp:Button ID="cmdShowSignature" runat="server" OnClick="cmdShowSignature_Click"
                  Text="Show Signature" /></td>
                      
                  </tr>
              </table>
              <br />
              &nbsp;<br />
              &nbsp; &nbsp; &nbsp; &nbsp;
          </div>
      </form>
  </body>
  </html>
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.