Solved

Long URL in SMS

Posted on 2016-11-20
6
39 Views
Last Modified: 2017-01-25
Dear Experts,

We are sending both email and SMS to survey repondents.  Our main issue is the long URL in SMS where we are sending in plain text,  that looks like this:
CLICK HERE FOR SURVEY: http://www.xxxxxxxxx.org/yyyyyyyyyyyy/xxxxxxx-yyyyyyyy-zzzzzzzz/Resident-Edit-MAIN-CUSTOMER-SATISFACTION-SURVEY-Mobile.aspx?MAIN_CUSTOMER_SATISFACTION_SURVEY=%3ckey%3e%3ccv%3e%3cc%3eDCS+ID%3c%2fc%3e%3cv%3e251%3c%2fv%3e%3c%2fcv%3e%3c%2fkey%3e

Now this is my question, is there any tool or utility similar to HMTL to represent it with a short meaningful name? Any suggestion would be highly appreciated.

TIA
0
Comment
Question by:JimiJ13
  • 3
  • 2
6 Comments
 
LVL 79

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 100 total points
ID: 41895280
There are many url shorteners available i.e. bit.ly
2
 
LVL 28

Expert Comment

by:Pawan Kumar
ID: 41895300
Another option could be TinyUrl.com
0
 

Author Comment

by:JimiJ13
ID: 41895313
Hi David/Pawan,

Thanks for your prompt response.

Is there a way I can integrate it with C# web app?


Thanks.
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 28

Accepted Solution

by:
Pawan Kumar earned 400 total points
ID: 41895340
Try..

-----

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication3
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            System.Uri YourURLAddress = new System.Uri("http://tinyurl.com/api-create.php?url=" + " http://www.xxxxxxxxx.org/yyyyyyyyyyyy/xxxxxxx-yyyyyyyy-zzzzzzzz/Resident-Edit-MAIN-CUSTOMER-SATISFACTION-SURVEY-Mobile.aspx?MAIN_CUSTOMER_SATISFACTION_SURVEY=%3ckey%3e%3ccv%3e%3cc%3eDCS+ID%3c%2fc%3e%3cv%3e251%3c%2fv%3e%3c%2fcv%3e%3c%2fkey%3e");
            System.Net.WebClient client = new System.Net.WebClient();
            string SmallURL = client.DownloadString(YourURLAddress);
            Console.WriteLine(SmallURL);
        }
    }
}

--

Open in new window


Output

EE
<<Ref-Details>>

Hope it helps !!
0
 

Author Closing Comment

by:JimiJ13
ID: 41895408
Thanks Pawan for nice, easy and complete solution.
0
 
LVL 28

Expert Comment

by:Pawan Kumar
ID: 41895412
Welcome !!
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question