public string GetProvinces(int countryID) { string rowSeparator = ";"; string colSeparator = ","; Helper oHelper = new Helper(); Location oLocation = new Location(); oLocation.CountryID = countryID; DataTable dtProvince = oLocation.LoadAll().Tables[1]; return oHelper.ConvertDataTableToString(dtProvince); }
protected new void Page_PreInit(object sender, EventArgs e) { this.oHelp = new Helper(); this.oLocation = new Location(); if (!this.oHelp.IsNullOrEmpty(base.Request.QueryString["Key"])) { this.Session["Key"] = base.Request.QueryString["Key"].ToString(); if (!this.oHelp.IsNullOrEmpty(base.Request.QueryString["City"])) { this.Session["City"] = base.Request.QueryString["City"].ToString(); } if (!this.oHelp.IsNullOrEmpty(base.Request.QueryString["Pro"])) { this.Session["Pro"] = base.Request.QueryString["Pro"].ToString(); } if (!this.oHelp.IsNullOrEmpty(base.Request.QueryString["Con"])) { this.Session["Con"] = base.Request.QueryString["Con"].ToString(); } base.Response.Redirect("~/Blog/google-map.aspx", true); } }