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 + ";"; } }
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); } }