Sunday, November 25, 2007

Table Adapter Example

The following block is an example of how to use the TableAdapters and was grabbed from http://weblogs.asp.net/scottgu/archive/2006/01/15/435498.aspx



Dim commentsAdapter As New CommentsTableAdapter
Dim Comments As TVFH.CommentsDataTable
Dim Comment As TVFH.CommentsRow

Comments = commentsAdapter.GetDataByNameSpaceAndSubNameSpace(PageName, SubNameSpace)

For Each Comment In Comments

Dim ReturnHTML As String += Comment.CommenterURL

Next



No comments: