I'm getting a twitter user timeline by this code:
http://pastebin.com/LrzRVM8g
But I don't know how to display user timeline on website from ascx file. Pls help me..
I'm getting a twitter user timeline by this code:
http://pastebin.com/LrzRVM8g
But I don't know how to display user timeline on website from ascx file. Pls help me..
The ascx file is simply a usercontrol. You can add the control to your page and loop through the data sent and populate other controls on your form or webpage.
List[dynamic] objects = serializer.Deserialize[List[dynamic]]{responseData};
The line above from the code gives a list of dynamic objects from the JSON data returned. Since the type is dynamic, you would need to know the JSON parameters when you try to read the data in order to map the values accordingly.
You can simply do a for loop on the "objects" object and put a breakpoint within the loop to see what the return values are. After you see the values, you can do whatever you want with them.
p.s: You will need to change the secret and consumer keys to match the actual keys given for the user timeline from Twitter. (I hope the ones visible in the sample code are not the actual real ones you will be using).