你的位置:首页 > 软件开发 > ASP.net > html拨打电话

html拨打电话

发布时间:2016-05-16 09:00:09
<%@ Page Language="C#" AutoEventWireup="true" Inherits="Jiubang.Wap.Page" Debug="true" ContentTyp ...
html拨打电话html拨打电话
<%@ Page Language="C#" AutoEventWireup="true" Inherits="Jiubang.Wap.Page" Debug="true" ContentType="text/html; charset=UTF-8" %><%@ Import Namespace="Jiubang.Wap"%><%@ Import Namespace="Jiubang.Sql"%><%@ Import Namespace="System.Data" %><%@ Import Namespace="System.Data.SqlClient" %><%@ Import Namespace="CustomerAD.CommonLibrary" %><% Response.ContentType = "text/html; charset=UTF-8"; %><script runat="server">  protected override void OnLoad(EventArgs e)  {    base.OnLoad(e);    this.TelNum = "400-8877766";        int mobs=0;    bool isuc=false;    get='_blank'>string http_ua=string.Empty;    string http_pro=string.Empty;        Common.GetUAInfo(ref mobs, ref isuc, ref http_ua, ref http_pro);    if (mobs == 3)    {      //iphone系列      this.RefleshContent = "<meta http-equiv=\"refresh\" content=\"1;url=tel:" + this.TelNum + "\">";      this.htmlContent = "<a href=\"tel:" + this.TelNum + "\">" + this.TelNum + "</a>";    }    else     {      //安卓      this.RefleshContent = "<meta http-equiv=\"refresh\" content=\"1;url=wtai://wp/mc;" + this.TelNum + "\">";      this.htmlContent = "<a href=\"wtai://wp/mc;" + this.TelNum + "\">" + this.TelNum + "</a>";    }  }  private string TelNum = string.Empty;  private string RefleshContent = string.Empty;  private string htmlContent = string.Empty;  </script><?"1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"><html "http://www.w3.org/1999/xhtml"><head>  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>  <meta name="viewport" content="width=device-width; initial-scale=1.0; minimum-scale=1.0; maximum-scale=1.0"/>  <%=this.RefleshContent %>  <title>拨打电话</title></head><body>如果您的浏览器不支持自动拨打,请点击下面的连接拨打:<%=this.htmlContent %><br /><div style="line-height:180%;text-align:center;">  <%=LinkHelper.GetATag("index.aspx","返回首页") %></div></body></html>

原标题:html拨打电话

关键词:HTML

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。