//Test method that gets all schools for the selected board protected void btnSchool_Click(object sender, EventArgs e) { Integration.Url = GetWebServiceURL(); com.maplewood.www.StAc_School School = new com.maplewood.www.StAc_School(); School = Integration.GetSchools(""); grdSchool.DataSource = School.School_Details; grdSchool.DataBind(); Response.Write(School.School_Details.Count.ToString()); }
protected void btnSchool_Click(object sender, EventArgs e) { com.maplewood.www.mwWebSrvStAc Integration = new com.maplewood.www.mwWebSrvStAc(); Integration.Url = strWebServiceURL; Integration.Timeout = 360000; //Response.Write(Integration.GetVersion()); com.maplewood.www.StAc_School School = new com.maplewood.www.StAc_School(); School = Integration.GetSchools(""); foreach (DataRow drow in School.School_Details.Rows) { strResults.Append(drow["board_code"].ToString() + ", " + drow["school_code"].ToString() + ", " + drow["school_name"].ToString() + ", " + drow["street_address"].ToString() + ", " + drow["City"].ToString() + "\r\n"); } txtResults.Text = strResults.ToString(); }