Call Control in Mobile Internet Toolkit

Description

 
It's usual to provide a hyperlink for a URL to navigate from one page to another. How about calling a cell phone by clicking a URL? That's what exactly Call Control is for. You can make a call by clicking a link. This only provides you to make your call easier but also gives a nice look to your program.
 
Source Code
  1. <%@ Page Inherits="System.Web.UI.MobileControls.MobilePage" Language="C#" %>  
  2. <%@ Page Inherits="System.Web.UI.MobileControls.MobilePage" Language="C#" %>  
  3. <%@ Register TagPrefix="mobile"Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %>  
  4. <mobile:Form runat="server" ID="Form1" NAME="Form1">  
  5.      <mobile:Call runat="server" AlternateFormat="{0} at {1}" AlternateURL="http://www.c-sharpcorner.com" phoneNumber="9109845248004" ID="Call1" NAME="Call1">  
  6.           Just Call  
  7.      </mobile:Call>  
  8. </mobile:Form> 
If the device supports call initiation then by clicking a URL will dial the phone number.


Similar Articles