EasyShop/PersonCenter/Member_AddressEdit.aspx.cs

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MyModels;
using System.Data;
using System.Data.SqlClient;
using Easy.COMMON;
using BLL;
namespace EasyShop.PersonCenter
{
    public partial class Member_AddressEdit :Base_Page
    {
        // Methods
        public string jsString =string.Empty;
        public string Province = string.Empty;
        public string City = string.Empty;
        public string Country = string.Empty;
        private void BindData()
        {


            //this.userId = StaticFunction.GetUserID().ToString();
            string GetID = Common.GetMes.GetRequestQuery(Request, "id");
            TB_MC_UserAddr tma = new TB_MC_UserAddr();
            DataSet ds = tma.GetList(" id=" + GetID + "");
            int num = ds.Tables[0].Rows.Count;
            for (int i = 0; i < num; i++)
            {
                this.txtAddress.Value = ds.Tables[0].Rows[i]["RecAddr"].ToString();
                this.txtCode.Value = ds.Tables[0].Rows[i]["RecZip"].ToString();
                this.txtPhone.Value = ds.Tables[0].Rows[i]["RecMobile"].ToString();
                this.txtTel.Value = ds.Tables[0].Rows[i]["RecTel"].ToString();
                this.txtRname.Value = ds.Tables[0].Rows[i]["RecName"].ToString();
                this.txtEmail.Value = ds.Tables[0].Rows[i]["RecMail"].ToString();
                this.Province = ds.Tables[0].Rows[i]["Province"].ToString();
                this.City = ds.Tables[0].Rows[i]["City"].ToString();
                this.Country = ds.Tables[0].Rows[i]["Country"].ToString();
            }
            if(num<=0)
            {
                MsgBox.Alert("获取信息出错,请稍后重试!");
            }
        }

        protected void btnAddressSubmit_ServerClick(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(Login_UserId))
            {
                string reurl = Request.RawUrl.ToString();
                System.Web.HttpContext.Current.Response.Redirect("/login.aspx?ReturnUrl=" + reurl + "");
            }
            //U_AddressModel uam = new U_AddressModel();
            //uam.Province = base.Request.Form["Select1"];
            //uam.City = base.Request.Form["Select2"];
            //uam.Country = base.Request.Form["Select3"];
            //uam.Address = StaticFunction.CheckSql(this.txtAddress.Value.Trim());
            //uam.code = StaticFunction.CheckSql(base.Request.Form["txtCode"].ToString().Replace(",", ""));
后面还有 71 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。