Contents tagged with asp.net 4.0 ajax
-
ASP.NET Podcast Show #140 - ASP.NET 4.0 Ajax Databinding
-
ASP.NET 4.0 AJAX - Caching Data on the client
-
Twitter API - Submit a post in C#
I used C# and WCF, but I could have just as easily used an ASMX web service. This code is fairly simple. No I didn't write it initially. I found it online (Hey, we all have to start somewhere). I massaged it a little to fit my needs and boom, here it is. I have decided to leave the comments for the original code sample in the post. Note: This code will not run as listed. You have to have a password. This code has that as a shared variable, but I'm not showing that to you, seriously. I hope that this is of some help to you.
-
ASP.NET 4.0 AJAX - Dynamic update to the DOM
-
Twitter API - Sending a Direct Message in C#
I tried writing some code to send a direct message using the Twitter API. It was a FAIL. I did some searching in google, and found this method below listed in a google group. I didn't write it, but it works, so enjoy. I plugged the method into my WCF Service and it just worked.
-
ASP.NET 4.0 Preview 4 works fine in other browsers
When I first worked with the original ASP.NET 2.0 AJAX, some folks told me that it only worked with IE, which was wrong then. I decided to take a look at ASP.NET 4.0 Preview 4 in Chrome and Firefox. I looked at my an example dataview i'm working with in my azure application. Low and behold, it looked the same in IE8, Firefox 3, and Chrome 2 beta. Here's a display of all of them.
-
Twitter API - Get a list of your friends in C#
I needed to call the Twitter API and get a list of friends. I thought I could do something similar to getting a list of posts, but alas, I had some stupid error in my linq to xml code. I futzed around with it for days to no avail. Finally, I decided it was just easier to iterate through the XML using an XmlNode and fill my objects that way. Hey, it just worked. Like my previous example, this code uses C# and is in a WCF Service. Note: As displayed, the code doesn't work, you will have to supply a password.
-
Calling the Twitter API in C#
I've been working on this application to send out tweets at a particular time. One thing thing I want to do is be able to look at the logged in user's timeline. I've been playing with the ASP.NET 4.0 AJAX Previews, so I thought I would marry the two. As a result, I wrote the WCF code below in C#. Note that the password is hidden, so the code won't work until you add that in. Basically, I make a request to get the friends timeline. This gives me the most recent 20 posts by default. I store the result in an XmlDocument. I need to get that data out as a complex object of type UserStatusSvc as I am returning an array of that type. I used Linq to Xml for that.
-
ASP.NET 4.0 AJAX - Pseudo Columns
With the ASP.NET 4.0 AJAX previews, there is the concept of a pseudo column. This is similar in concept to Oracle's rownum and rowid columns that are returned in a query. The two columns that ASP.NET 4.0 AJAX when doing databinding are $index and $dataItem.
-
ASP.NET 4.0 AJAX Preview Release 4 Setup