タグ

ブックマーク / kobarin.hateblo.jp (2)

  • ASP.NETでTwitterのOauthを使う - Kobarin's Development Blog

    1. まずTwitterアプリケーションを登録 http://twitter.com/apps 2. 「consumer key」と「consumer secret」を取得 3. ASP.NETサイトを開く 4. web.configを開き、<appSettings>に以下のように記述。「・・・」には、それぞれのキーを記入。 5. 以下ページにある「Download the full code here」よりZIPをダウンロードし解凍後、 「oAuth.cs」「oAuthTwitter.cs」の2クラスファイルを、AppCodeフォルダに設置 http://www.voiceoftech.com/swhitley/?p=681 6. 以下のASPXファイルを設置 protected void Page_Load(object sender, EventArgs e) { string ur

    ASP.NETでTwitterのOauthを使う - Kobarin's Development Blog
    JHashimoto
    JHashimoto 2012/04/04
    "以下ページにある「Download the full code here」よりZIPをダウンロードし解凍後、「oAuth.cs」「oAuthTwitter.cs」の2クラスファイルを、AppCodeフォルダに設置"
  • PagedDataSourceを使って、SqlDataSourceをRepeaterにバインドする例 - Kobarin's Development Blog

    PagedDataSourceの存在を今日初めて知った。 確かRepeaterをページングするのは、結構面倒なコーディングが必要だと記憶していたけど、 コントロールが用意されていたとは知らなかった。 PagedDataSource pds = new PagedDataSource(); pds.DataSource = SqlDataSource1.Select(DataSourceSelectArguments.Empty); pds.AllowPaging = true; pds.PageSize = 10; pds.CurrentPageIndex = 0; Repeater1.DataSource = pds; Repeater1.DataBind(); //前へ進む・次へ進むボタンの非表示処理 if (pds.IsFirstPage) linkPrevious.Visible

    PagedDataSourceを使って、SqlDataSourceをRepeaterにバインドする例 - Kobarin's Development Blog
    JHashimoto
    JHashimoto 2012/03/02
    "PagedDataSourceの存在を今日初めて知った。 確かRepeaterをページングするのは、結構面倒なコーディングが必要だと記憶していたけど、コントロールが用意されていたとは知らなかった。"
  • 1