Solved

C# server side hyperlink

Posted on 2007-04-02
2
876 Views
Last Modified: 2013-12-16
I have an internal C# application where the user can search for a member and once the member is found contact information is diplayed on the screen. I've had a request for the user to be able to click an Icon on the screen and have our Cisco phone system automatically dial the members number acording to the number in the text box.

I have recieved a HTML link from Cisco support but I'm trying to run the link from the server side. I've created a hyperlink named hlnkPhone. I've used a Mailto: in similar fashion but I'm having syntax errors with the link the Cisco rep gave me. I etiher get portions of the string commented out or it expects and end of statment when I use a ;

Below is what code I have. the text box that displays the phone number is named Phone. Can someone help me with the sytax

// PHONE
if(hu["phone"] != null)
{
    this.Phone = hu["phone"].ToString();      
    this.hlnkPhone.NavigateUrl = "https:" +cm1/webdialer/Webdialer?destination=+this.Phone &loc=+English%20United%20States;

}

this is the HTML link I was given from the tech support at Cisco

https://cm1/webdialer/Webdialer?destination='PhoneNumberHere'&loc='+ 'English%20United%20States
0
Comment
Question by:Eric_Trogdon
2 Comments
 
LVL 11

Accepted Solution

by:
DotNetThinker earned 500 total points
ID: 18837587
try this:

this.hlnkPhone.NavigateUrl = "https://cm1/webdialer/Webdialer?destination=" + this.Phone + "&loc=English%20United%20States";
0
 

Author Comment

by:Eric_Trogdon
ID: 18837772
thanks....i feel like having one of those D'oh moments.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now