点击回首页
我的浏览记录 | | 帮助?
当前位置:

源码截图

源码目录树

当前路径:vip/index.aspx.cs     using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
namespace fcsite.vip
{
    public partial class index : System.Web.UI.Page
    {
        public string vipuser = "";
        public string imgurl = "";
        public string rename = "";
        public string email = "";
        public string phone = "";
        public string loupansc = "";
        public int money = 0;
        public int tjcounts = 0;
        public int cjcounts = 0;
        public int dcjcounts = 0;
        public string tgvip = "";
        public int vipid = -1;


        public string sitename = System.Configuration.ConfigurationManager.AppSettings["sitename"].ToString();
        public string myname = System.Configuration.ConfigurationManager.AppSettings["myname"].ToString();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                if (Request.Cookies["vip"] != null)
                {
                    vipuser = Request.Cookies["vip"]["username"];
                    vipuser = Server.UrlDecode(vipuser);
                    ReaderVip(vipuser);
                    if (imgurl == "")
                    {
                        imgurl = "images/viphead.png";
                    }
                    Rtjcounts();
                    Rcjcounts();
                    dcjcounts = tjcounts - cjcounts;
                }
                else
                {
                    Response.Redirect("/login.aspx");
                }
            }
        }

        public void Rtjcounts()
        {
            SqlConnection con = new SqlConnection(System.Configuration.ConfigurationManager.AppSettings["sqldb"].ToString());
            SqlCommand cmd = new SqlCommand();
            cmd.Connection = con;
            cmd.CommandText = "select count(*) from orderlistTJ where vipuser=@vipuser";
            cmd.Parameters.Add("@vipuser", SqlDbType.NVarChar);
            cmd.Parameters["@vipuser"].Value = vipuser;
            con.Open();
            tjcounts = Convert.ToInt32(cmd.ExecuteScalar());
            con.Close();
        }
        public v...
对不起,完整源码文件,请先购买后再查看
关于我们 | 顾问团队 | 发展历程 | 联系我们 | 源码上传
联系电话(Tel):4008-010-151(免长途) 企业QQ:2852517674
地址:北京市海淀区中关村鼎好大厦A座二层 邮编:100080
Room A-801,Dinghao Building,Zhongguancun,Beijing,China,100080
51Aspx.com 版权所有 CopyRight © 2006-2015. 京ICP备09089570号 | 京公网安备11010702000869号
分享该页面
关闭侧边栏