Beispiel #1
0
    protected void ddlCountryList_SelectedIndexChanged(object sender, EventArgs e)
    {
        var coutryCode = ddlCountryList.SelectedValue;

        ddlReportingPeriod.Bind(DBReadManager.GetAllReportingPeriods(coutryCode), "ReportingPeriod", "ID");
        LoadCBC();
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         ViewState["prevPage"] = Request.UrlReferrer;
         Common.GetAllCountries(ddlCountryList);
         ddlReportingPeriod.Bind(DBReadManager.GetAllReportingPeriods(), "ReportingPeriod", "ID");
         LoadCBC();
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         ddlReportingPeriod.Bind(DBReadManager.GetAllReportingPeriods(), "ReportingPeriod", "ID");
         Common.GetAllCountries(ddlCountryList);
         ddlCountryList.SelectedValue     = string.IsNullOrEmpty(Request.QueryString["xCountry"]) ? "-99999" : Request.QueryString["xCountry"].ToString();
         ddlReportingPeriod.SelectedValue = string.IsNullOrEmpty(Request.QueryString["Period"]) ? "-99999" : Request.QueryString["Period"].ToString();
         ViewState["prevPage"]            = Request.UrlReferrer;
         LoadCBC();
     }
 }