コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Session["folderName"] = FileUploadControl1.UploadInFolder;
                //  Page.ClientScript.RegisterStartupScript(typeof(Page), "dfe", "SetPictureOnIframe();", true);



                if (!string.IsNullOrEmpty(Request.QueryString["lang"]))
                {
                    Session["lang"] = Request.QueryString["lang"];
                    //Response.Redirect("/");
                }

                if (Session["lang"] != null)
                {
                    cul = Session["lang"].ToString();
                    // SetCulture(Session["lang"].ToString());
                }
                else
                {
                    cul = "en-US";
                    // SetCulture("en-US");
                }

                if (Session["USER"] != null)
                {
                    if (((User)Session["USER"]).UserType != "N") // If not admin
                    {
                        Response.Redirect("/");
                    }
                }
                else
                {
                    Response.Redirect("Masters/ManageOrders.aspx");
                }


                //txtDescription.config.uiColor = "#BFEE62";
                //txtDescription.config.language = "de";
                //txtDescription.config.enterMode = EnterMode.BR;

                DBAccess.BindProducts(dropMainProducts);
                BindGrid();
            }
        }