Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (!string.IsNullOrWhiteSpace(Request.QueryString["action"]) && Request.QueryString["action"] == "addmsg")
                {
                    string       name    = Request.Params["name"];
                    string       email   = Request.Params["email"];
                    string       phone   = Request.Params["phone"];
                    string       content = Request.Params["content"];
                    com.msgBoard mb      = new com.msgBoard();

                    int count = mb.addMsgBoard(name, email, phone, content);
                    if (count > 0)
                    {
                        Response.Write("success");
                    }
                    else
                    {
                        Response.Write("error");
                    }
                    Response.End();
                }
                if (!string.IsNullOrWhiteSpace(Request.QueryString["l"]) && Request.QueryString["l"] == "zh-cn")
                {
                    SqlOper.Utils.Language = "zh-cn";
                }
                else if (!string.IsNullOrWhiteSpace(Request.QueryString["l"]) && Request.QueryString["l"] == "en")
                {
                    SqlOper.Utils.Language = "en";
                }
                com.product pro = new com.product();
                homeShowDt      = pro.GetProductHomeShow();
                homeRecommendDt = pro.GetProductHomeRecommend();
            }
            catch (Exception)
            {
            }
        }
Beispiel #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     com.product pro = new com.product();
     homeShowDt      = pro.GetProductHomeShow();
     homeRecommendDt = pro.GetProductHomeRecommend();
 }