Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: Web application help

$
0
0
Okay here's my code for the Home.aspx.cs page:


using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Threading;
using Tweetinvi;
using Tweetinvi.Core.Extensions;
using Tweetinvi.Core.Interfaces.oAuth;
using Tweetinvi.Core.Interfaces.Streaminvi;
using Tweetinvi.Json;
using Geo = Tweetinvi.Geo;
using SavedSearch = Tweetinvi.SavedSearch;
using Stream = Tweetinvi.Stream;

namespace AppPrototype
{
public partial class Home : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        var fs = Stream.CreateFilteredStream();

        fs.AddTrack("Manchester United");
        fs.MatchingTweetReceived += (s, args) =>
            {

                Console.WriteLine("The number of tweets with manchester has been found x times in the database");

            };

        fs.StartStreamMatchingAnyCondition();

    }
}
}

And here's my code for the web form/Home.aspx page that the information is being pulled into:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="AppPrototype.Home" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server"><title>Twitter Keyword Search</title></head><body>
<form id="form1" runat="server">
<div>

    <asp:Label ID="keywordSearch" runat="server" Text=""></asp:Label>
    <br />
    <br />
    <asp:Label ID="successlbl" runat="server" Text=""></asp:Label>
    <br />
    <br />
    <asp:Label ID="resultlbl" runat="server" Text=""></asp:Label>
    <br />




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


Can you see anything wrong?
Again thank you for all your help, You're really saving my life now
Kind regards
Stephen

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>