Solved

C# server side hyperlink

Posted on 2007-04-02
2
886 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying 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

Suggested Solutions

Title # Comments Views Activity
ModalPopup  question 22 56
IntelliJ and Eclipse Neon 2 installations 4 66
SSIS GUID Variable 2 57
WPF and Powershell button hover change text 5 63
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

734 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