protected void Page_Load(object sender, EventArgs e) { PosyandusServiceClient proxyPosyandu = new PosyandusServiceClient(); KecamatanDropDown.DataSource = proxyPosyandu.ListKecamatan(); KecamatanDropDown.DataBind(); proxyPosyandu.Close(); }
protected void Tambah_Clicked(object sender, EventArgs e) { PosyandusServiceClient proxyPosyandu = new PosyandusServiceClient(); proxyPosyandu.InsertPosyandu(Name.Text, Desa.Text, Kecamatan.Text, Kabupaten.Text, Provinsi.Text); proxyPosyandu.Close(); successNotificatonPanel.Visible = true; }