Click here to Skip to main content
15,896,348 members
Articles / Web Development

Consuming Amazon Web Services (SQS, S3) using C#.NET

Rate me:
Please Sign up or sign in to vote.
4.76/5 (22 votes)
12 Dec 2011CPOL4 min read 89.8K   2.7K   56  
Step by step overview of consuming Amazon Web Services (SQS, S3) using C#.NET
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SQSSample.aspx.cs" Inherits="SampleSQSS3.SQSSample" %>

<!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></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>

        <div>
        <table>
              <tr>
                <td>
                                      
                  Queue Name:  <asp:TextBox ID="txtQueueName" runat="server"></asp:TextBox>
                                      
                </td>
                <td>
                    
                    <asp:Button ID="btnCreate" runat="server" Text="Create Queue" 
                        onclick="btnCreate_Click" /> 
                    
                </td>
            </tr>
        
        </table>
       </div>  

       <br />

    <div>
        <table>
            <tr>
                <td colspan="3">
                    <asp:Button ID="btnShowQueues" runat="server" Text="Show Queue List" onclick="btnShowQueues_Click" />&nbsp;
                    <asp:Button ID="btnDeleteQueue" runat="server" Text="DeleteQueue" onclick="btnDeleteQueue_Click" />
                </td>
            </tr>
            <tr>
                <td>
                <asp:ListBox ID="QueuesList" runat="server" Visible="False"></asp:ListBox>

                <br />
                <br />
                <asp:Button ID="btnSendMessage" runat="server" Text="Send Message" onclick="btnSendMessage_Click" />
                &nbsp;
                    
                    <br />
                    <asp:TextBox ID="txtMessage" runat="server" Height="210px" TextMode="MultiLine" 
                        Width="429px"></asp:TextBox>&nbsp;
                </td>
                <td>
                    <asp:Button ID="btnReceiveMessages" runat="server" Text="Receive Messages" 
                        onclick="btnReceiveMessage_Click" />
                        &nbsp;<asp:Button ID="btnDeleteMessage" runat="server" 
                        onclick="btnDeleteMessage_Click" Text="Delete Message" />
                    <br />
                        <br />
                    <asp:TextBox ID="txtReceivedMessage" runat="server" Height="305px" 
                        TextMode="MultiLine" Width="432px"></asp:TextBox>
                </td>
            </tr>
        
        </table>
       </div>  


              <br />




    </div>
    </form>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions