コード例 #1
0
        public void RaiseCallbackEvent(String eventArgument)
        {
            bizAUPostCode      biz = new bizAUPostCode();
            IList <AUPostCode> pss;

            pss = biz.ListSuburbState(eventArgument);
            foreach (AUPostCode au in pss)
            {
                returnValue += au.Suburb + "#" + au.StateCode + ";";
            }
        }
コード例 #2
0
 private void LoadSuburbsAndState()
 {
     try
     {
         bizAUPostCode      biz = new bizAUPostCode();
         IList <AUPostCode> pss;
         pss = biz.ListSuburbState(this.txtPostCode.Text.Trim());
         this.ddlSuburb.Items.Clear();
         if (pss.Count > 0)
         {
             foreach (AUPostCode au in pss)
             {
                 this.ddlSuburb.Items.Add(new ListItem(au.Suburb + " (" + au.StateCode + ")", au.Suburb + "#" + au.StateCode));
             }
             this.ddlSuburb.CssClass = "control";
         }
     }
     catch (Exception ex)
     {
         bizLog.InsertExceptionLog(ex);
         Response.Redirect("~/General/ErrorPage.aspx", false);
     }
 }