EasyShop/Order/Pup_Address.aspx.cs

(开头部分) 2KB

这里只显示每个文件的开头 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;
namespace EasyShop.Order
{
    public partial class Pup_Address :Base_Page
    {
        public string jsString = string.Empty;
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        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 + "");
            }
            TB_MC_UserAddr tma = new TB_MC_UserAddr();
            tma.Province = base.Request.Form["Select1"];
            tma.City = base.Request.Form["Select2"];
            tma.Country = base.Request.Form["Select3"];
            tma.RecAddr = StaticFunction.CheckSql(this.txtAddress.Value.Trim());
            tma.RecZip = StaticFunction.CheckSql(this.txtCode.Value.Trim());
            tma.RecTel = StaticFunction.CheckSql(this.txtPhone.Value.Trim());
            tma.RecMobile = StaticFunction.CheckSql(this.txtTel.Value.Trim());
            tma.RecName = StaticFunction.CheckSql(this.txtRname.Value.Trim());
            tma.userid = int.Parse(StaticFunction.GetUserID().ToString());//没有为0
            tma.RecMail = this.txtEmail.Value.Trim();
            tma.Memo1 = "";
            if (this.cbSomeTime.Checked)
            {
                tma.isvalid = true;
            }
            else
            {
                tma.isvalid = false;
            }
            int k = tma.Add();
            if (k > 0)
            {
                // MsgBox.Alert("更新成功");
                //string ck = this.ViewState["retu"].ToString();
                //jsString += "dlg.Msg.Cor(\"更新成功\");window.close();";
                System.Web.HttpContext.Current.Response.Write("<script language=\"javascript\" type=\"text/javascript\">");
                System.Web.HttpContext.Current.Response.Write("alert('更新成功');window.close();");
                System.Web.HttpContext.Current.Response.Write("</script>");
                //base.Response.Redirect(this.ViewState["retu"].ToString());
            }
            else
            {
                //jsString += "dlg.Msg.Err(\"更新失败,请稍后重试!\");";
后面还有 8 行代码,购买后查看完整代码

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

AI 解读 AI

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

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