-
Website
http://www.emadibrahim.com -
Original page
http://www.emadibrahim.com/2009/05/07/shortening-urls-with-bitlys-api-in-net/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
danatkinson
1 comment · 1 points
-
Korayem
3 comments · 1 points
-
dukon21
1 comment · 1 points
-
Mladen Mihajlovic
1 comment · 1 points
-
Chad Myers
3 comments · 1 points
-
-
Popular Threads
-
Select Random Records Using Nhibernate
1 week ago · 4 comments
-
Select Random Records Using Nhibernate
I just tried your code, but it is throwing me an error at this part:
var x = (from result in resultXml.Descendants("nodeKeyVal")
...
It tells me : error CS1026: ) expected
Do you have an idea why this may happen?
Thanks
ralph
correctly? Sometimes the browser messes up the code formatting.
Other than that you should add a breakpoint and examine the value of
resultXml and see if it shows any error messages.
Good luck.
How do I define\declare xDocument variable correctly?
Thanks
I changed the call to HttpUtility to use System.Uri.EscapeDataString and it worked like a charm.
Good stuff!
Dont forget to import the necessary assemblies.
using System.Linq;
using System.Web;
using System.Xml.Linq;