Пример #1
0
    private void CallGetTweets()
    {
        //Function to get tweets
        TwitterController twitter    = new TwitterController();
        DataTable         dtRepeater = twitter.GetTwitts("salesforce", 10);

        if (dtRepeater != null)
        {
            Session["Tweets"]   = dtRepeater; //Storing the tweet datatable into session for filtering later during search
            rpttweet.DataSource = dtRepeater;
            rpttweet.DataBind();
        }
        else
        {
            Session["Error"] = "No tweet found for user @salesforce";
            Response.Redirect("ErrorPage.aspx");
        }
    }