Retrieve a status ID

Apr 5, 2011 at 2:30 PM

Hello Everybody !

I'm trying to retrieve my status' ID. This is my controller's code :

var friendTweets = (
                from tweet in this._context.Status
                where tweet.Type == StatusType.Home &&
                tweet.Count == 8
                select tweet).ToList();

And here my aspx' code :

<% foreach (LinqToTwitter.Status tweet in (List<LinqToTwitter.Status>)ViewData["friendtweets"]) 
{
        %>
                <%= Ajax.ActionLink("Favoris", "addTweet", "Ajax",new { tmp = tweet.ID }, new AjaxOptions() { OnSuccess = "toto", HttpMethod = "Get" }) %>
                
        <%
           }
        %>

My problem is that tweet.ID is null ... Can you explain me why ?

Thanx for your answer :)