Exemplo n.º 1
0
    //private static int test_lang = 0;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            imgIconHeader.ImageUrl = Globals.UrlImages + "icon_menu.gif";;
            ltlHeader.Text         = Language.GetTextByID(314);
            ltlError.Text          = string.Empty;
            ltlSuccess.Text        = string.Empty;
            btOK.Text = Language.GetTextByID(37);

            WebInfor objweb = new WebInfor();
            string   id     = "1";

            DataRow dr = objweb.Getdata(id);
            tbxBackend.Text     = dr["backend"].ToString().Trim();
            tbxFrontend.Text    = dr["frontend"].ToString().Trim();
            tbxMailContact.Text = dr["mailcontact"].ToString().Trim();
            //tbxMailPort.Text = dr["mailport"].ToString().Trim();
            //tbxMailServer.Text = dr["mailserver"].ToString().Trim();
            txtkeywords.Text    = dr["keywords"].ToString().Trim();
            txtDescription.Text = dr["Description"].ToString().Trim();
            txtContent.Text     = dr["diachi"].ToString().Trim();
            txtContact.Text     = dr["contact"].ToString().Trim();
            txtH1.Text          = dr["SEOH1"].ToString();
            txtNameCO.Text      = dr["tencongty"].ToString();
            txtSlogan.Text      = dr["slogan"].ToString().Trim();
        }
    }
Exemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ltlStyle.Text  = string.Empty;
        ltlStyle.Text += "<link href='" + Globals.UrlCss + "backend.css' rel='stylesheet' type='text/css' >\n";
        ltlStyle.Text += "<link href='" + Globals.UrlCss + "tree.css' rel='stylesheet' type='text/css' >\n";
        ltlStyle.Text += "<script language='JavaScript' type='text/JavaScript' src='" + Globals.UrlJavascript + "common.js'></script> \n";
        ltlStyle.Text += "<script language='JavaScript' type='text/JavaScript' src='" + Globals.UrlJavascript + "common_new.js'></script> \n";
        ltlStyle.Text += "<script language='JavaScript' type='text/JavaScript' src='" + Globals.UrlJavascript + "common_images.js'></script> \n";

        //ltlStyle.Text += "<script language='JavaScript' type='text/JavaScript' src='" + Globals.UrlJavascript + "tree.js'></script> \n";
        //ltlStyle.Text += "<script language='JavaScript' type='text/JavaScript' src='" + Globals.UrlJavascript + "tree_select.js'></script> \n";
        //ltlStyle.Text += "<script language='JavaScript' type='text/JavaScript' src='" + Globals.UrlJavascript + "xmlextras.js'></script> \n";

        //ltlStyle.Text += "<link href='" + Globals.UrlImages + "icon_VIGLACERA.ico' rel='shortcut icon'>";

        //======
        WebInfor objweb = new WebInfor();
        string   id     = "1";
        DataRow  dr     = objweb.Getdata(id);

        ltlTitle.Text = dr["backend"].ToString().Trim();
    }