blob: cb608511af63f473371aa26c68b95f23fa5d3c5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" Inherits="OAuthClient.Twitter" Codebehind="Twitter.aspx.cs" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Body" runat="Server">
<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
<asp:View ID="View1" runat="server">
<h2>Twitter setup</h2>
<p>A Twitter client app must be endorsed by a Twitter user. </p>
<ol>
<li><a target="_blank" href="https://twitter.com/oauth_clients">Visit Twitter and create
a client app</a>. </li>
<li>Modify your web.config file to include your consumer key and consumer secret.</li>
</ol>
</asp:View>
<asp:View runat="server">
<h2>Updates</h2>
<p>Ok, Twitter has authorized us to download your feeds. Notice how we never asked
you for your Twitter username or password. </p>
<p>
Upload a new profile photo:
<asp:FileUpload ID="profilePhoto" runat="server" />
<asp:Button ID="uploadProfilePhotoButton" runat="server"
onclick="uploadProfilePhotoButton_Click" Text="Upload photo" />
<asp:Label ID="photoUploadedLabel" runat="server" EnableViewState="False"
Text="Done!" Visible="False"></asp:Label>
</p>
<p>
Click 'Get updates' to download updates to this sample.
</p>
<asp:Button ID="downloadUpdates" runat="server" Text="Get updates" OnClick="downloadUpdates_Click" />
<asp:PlaceHolder runat="server" ID="resultsPlaceholder" />
</asp:View>
</asp:MultiView>
</asp:Content>
|