Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Permissions.ComRedirect(Page, Permissions.redirUrl);
        ///检查相应权限
        Response.Cache.SetExpires(DateTime.Now);
        Permissions.CheckManagePermission(6315);

        ///设置GridView的样式
        gvCountry.Attributes.Add("style", "word-break:keep-all;word-wrap:normal");

        if (!IsPostBack)
        {
            GetAllCurrencyIDName();
            GetCountryInfo();

            DropDownList1.DataTextField  = "country";
            DropDownList1.DataValueField = "id";
            DropDownList1.DataSource     = CountryBLL.GetContry();
            DropDownList1.DataBind();
        }
        Translations();
    }