Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Long URL in SMS

Posted on 2016-11-20
6
Medium Priority
?
61 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 84

Assisted Solution

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

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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 35

Accepted Solution

by:
Pawan Kumar earned 1600 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 35

Expert Comment

by:Pawan Kumar
ID: 41895412
Welcome !!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
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…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

971 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