我想要检索用户的状态以在列表框中显示它们(在Web表单中)。 以下是我的代码:
var twitterCtx = new TwitterContext();
var publicTweets =
from tweet in twitterCtx.Status
where tweet.Type == StatusType.User && tweet.ScreenName == txtName.Text
select tweet.Text;
_status = publicTweets.ToList();
但是在最后一行崩溃,并显示以下消息:
输入字符串格式不正确。
为什么会这样?
我该如何正确处理?
此致敬礼,
KiTe