CollegeSource_WSAPI_Basic - DEMO

Institution List by CEEB Code


 NameCityStateCountry
View SAN DIEGO MESA COLLEGESAN DIEGOCAUnited States


ASP.NET EXAMPLE CODE [VB]

Page load event from the Code-Behind.

Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
    If Not (IsPostBack) Then

        'create the instance of the web service class
        Dim myWebService As New CSWebServiceAPI.CollegeSource_WSAPI_Basic

        'execute web method to get institution 
        Dim myInstitutionList As IEnumerable(Of CSWebServiceAPI.Institution)
        myInstitutionList = myWebService.GetInstitutionByCEEBCode(AccessKeyID, CEEBCode) 

        'bind gridview
        GridView1.DataSource = myInstitutionList
        GridView1.DataBind()

    End If
End Sub

ASP.NET EXAMPLE CODE [C#]

Page load event from the Code-Behind.

protected void Page_Load(object sender, System.EventArgs e)
{
    if (!(IsPostBack)) {

        //create the instance of the web service class
        CSWebServiceAPI.CollegeSource_WSAPI_Basic myWebService = new CSWebServiceAPI.CollegeSource_WSAPI_Basic();

        //execute web method to get institution 
        IEnumerable<CSWebServiceAPI.Institution> myInstitutionList = default(IEnumerable<CSWebServiceAPI.Institution>);
        myInstitutionList = myWebService.GetInstitutionByCEEBCode(AccessKeyID, CEEBCode);

        //bind gridview
        GridView1.DataSource = myInstitutionList;
        GridView1.DataBind();

    }
}