Beispiel #1
0
        public string GetLatandLongValues(string zipcode)
        {
            string      str         = string.Empty;
            PropzipCode objProperty = new PropzipCode();

            objProperty.ZipCode = zipcode;
            BllZipCodeRegistration objzipCode = new BllZipCodeRegistration();

            str = objzipCode.SelectLatitute(objProperty);
            return(str);
        }
Beispiel #2
0
 public string PurchaseZipCode()
 {
     try
     {
         BllZipCodeRegistration objPurchasecategory = new BllZipCodeRegistration();
         string res = objPurchasecategory.PurchaseZipCode(Session["associate"].ToString());
         return(res);
     }
     catch
     {
         return("");
     }
 }
Beispiel #3
0
 public string CityWiseStates(string CityID)
 {
     try
     {
         BllZipCodeRegistration objPurchasecategory = new BllZipCodeRegistration();
         string res = objPurchasecategory.CityWiseStates(CityID, Session["associate"].ToString());
         return(res);
     }
     catch
     {
         return("");
     }
 }
Beispiel #4
0
 public string ZipCodeExists(string Zipcode)
 {
     try
     {
         BllZipCodeRegistration ObjZipcode = new BllZipCodeRegistration();
         string res = ObjZipcode.ZipCodeExists(Zipcode, Convert.ToInt16(Session["associate"]).ToString());
         return(res);
     }
     catch
     {
         return("");
     }
 }
        private void BindStateWiseZipCode()
        {
            DataSet                dsresult            = new DataSet();
            XmlDocument            doc                 = new XmlDocument();
            BllZipCodeRegistration objPurchasecategory = new BllZipCodeRegistration();

            doc.LoadXml(objPurchasecategory.StateWiseZipCode(cardState.SelectedItem.ToString(), cardCity.Text, Session["associate"].ToString()));
            XmlElement exelement = doc.DocumentElement;

            if (exelement.IsEmpty == false)
            {
                XmlNodeReader nodereader = new XmlNodeReader(exelement);
                dsresult.ReadXml(nodereader, XmlReadMode.Auto);
                cardzipcode.DataSource     = dsresult;
                cardzipcode.DataTextField  = "zipcode";
                cardzipcode.DataValueField = "zipcode";
                cardzipcode.DataBind();
            }
        }