Web service

  • Thread starter Thread starter Goober
  • Start date Start date
Goober:
I got it up and running in about 2 minutes, bet you can do the same.

In VS.Net, open a web project (new or existing), right click on "References"
and select "Add Web reference" enter that URL in the box and hit "go".
Click "Add Referenc"

in your page, drop a datagrid, set the AutoGenerateColumns to true ala:
<asp:DataGrid AutoGenerateColumns="True" Runat="server" ID="grid" />

in your codebehind, just do:
Protected grid As System.Web.UI.WebControls.DataGrid

Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles MyBase.Load
Dim nraila As New org.nraila.www.NRAILANewsandUpdatesSyndication
grid.DataSource = nraila.GetLegislativeUpdates()
grid.DataBind()
End Sub

and you should be all go :)

Karl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top