diff options
Diffstat (limited to 'samples/OAuthConsumer/Twitter.aspx.cs')
-rw-r--r-- | samples/OAuthConsumer/Twitter.aspx.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/samples/OAuthConsumer/Twitter.aspx.cs b/samples/OAuthConsumer/Twitter.aspx.cs index 44350ca..8288ed0 100644 --- a/samples/OAuthConsumer/Twitter.aspx.cs +++ b/samples/OAuthConsumer/Twitter.aspx.cs @@ -36,7 +36,7 @@ protected void Page_Load(object sender, EventArgs e) { if (this.TokenManager != null) { - MultiView1.ActiveViewIndex = 1; + this.MultiView1.ActiveViewIndex = 1; if (!IsPostBack) { var twitter = new WebConsumer(TwitterConsumer.ServiceDescription, this.TokenManager); @@ -74,13 +74,13 @@ HttpUtility.HtmlEncode(update.Status)); } tableBuilder.Append("</table>"); - resultsPlaceholder.Controls.Add(new Literal { Text = tableBuilder.ToString() }); + this.resultsPlaceholder.Controls.Add(new Literal { Text = tableBuilder.ToString() }); } protected void uploadProfilePhotoButton_Click(object sender, EventArgs e) { - if (profilePhoto.PostedFile.ContentType == null) { - photoUploadedLabel.Visible = true; - photoUploadedLabel.Text = "Select a file first."; + if (this.profilePhoto.PostedFile.ContentType == null) { + this.photoUploadedLabel.Visible = true; + this.photoUploadedLabel.Text = "Select a file first."; return; } @@ -88,9 +88,9 @@ XDocument imageResult = TwitterConsumer.UpdateProfileImage( twitter, this.AccessToken, - profilePhoto.PostedFile.InputStream, - profilePhoto.PostedFile.ContentType); - photoUploadedLabel.Visible = true; + this.profilePhoto.PostedFile.InputStream, + this.profilePhoto.PostedFile.ContentType); + this.photoUploadedLabel.Visible = true; } } }
\ No newline at end of file |