CollegeSource_WSAPI_Basic - DEMO
Equivalency Institution List by Account
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 WSAPI_EQPublicView.CollegeSource_WSAPI_Basic
'execute web method to get list of institutions
Dim myInstitutionListPV As IEnumerable(Of WSAPI_EQPublicView.InstitutionPV)
myInstitutionListPV = myWebService.GetEquivalencyInstitutionListByAccount(AccessKeyID, [Page], [PageSize])
'bind gridview
GridView1.DataSource = myInstitutionListPV
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
WSAPI_EQPublicView.CollegeSource_WSAPI_Basic myWebService = new WSAPI_EQPublicView.CollegeSource_WSAPI_Basic();
//execute web method to get list of institutions
IEnumerable<WSAPI_EQPublicView.InstitutionPV> myInstitutionListPV = default(IEnumerable<WSAPI_EQPublicView.InstitutionPV>);
myInstitutionListPV = myWebService.GetEquivalencyInstitutionListByAccount(AccessKeyID, [Page], [PageSize]);
//bind gridview
GridView1.DataSource = myInstitutionListPV;
GridView1.DataBind();
}
}