ASP.NET飛信介面測試

iDotNetSpace發表於2009-07-13

cs程式碼:

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Net;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
       

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        WebRequest req = WebRequest.Create("http://sms.api.bz/fetion.php?username=" + 你的號碼 + "&password=" + 你的飛信密碼 + "&sendto=" + 對方號碼 + "&message=" + message.Text);
        req.Method = "GET";
        req.GetResponse();
        message.Text = "";
        Response.Write("
    }
}

 

 

前臺程式碼:

ttp://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" style="color: rgb(0, 111, 247); font-size: 0.9em; ">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

http://www.w3.org/1999/xhtml" >


    飛信介面測試


   
   

       

       

       

   

 

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12639172/viewspace-608973/,如需轉載,請註明出處,否則將追究法律責任。

相關文章