A A
RSS

Tag Archive | "snippets"

Shortening URLs Using TinyUrl API in .net

Tuesday, April 15, 2008

View Comments

Here is a quick method to shorten URLs using the TinyUrl API in .net – C# and VB C# public static string MakeTinyUrl(string Url) { try { if (Url.Length <= 30) { return Url; } if (!Url.ToLower().StartsWith("http") && !Url.ToLower().StartsWith("ftp")) { Url = "http://" + Url; } var request = WebRequest.Create("http://tinyurl.com/api-create.php?url=" + Url); var res = [...]

Advertise Here
The Most Intelligent Add-In To Visual Studio Happy fan of

What I'm Doing...

Recent Posts

Yonkly Open Source

Sign up for my newsletter




* = required field

powered by MailChimp!

megree Widget

Apparently, I am connected to Obama. Check this out...
My path to Obama

Cyber Identity