using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace Stat.web
{
    /// <summary>
    /// 
    /// </summary>
    public partial class IP : System.Web.UI.Page
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            string ip = Plugin.Common.Rq("ip");
            ip = ip == "" ? "127.0.0.1" : ip;

            DataTable dt = BLL.IP.Get(ip);

            if (dt != null && dt.Rows.Count > 0)
            {
                string tep = "";
                tep += "IP： " + ip;
                tep += " 所在的地区是：" + dt.Rows[0]["IPinfo"];
                Response.Write(tep);
            }
        }

    }
}
