Advertisement
Advertisement
| 06.18.2008 at 07:41AM PDT, ID: 23495363 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: |
---.vb file---
Imports System.Data.SqlClient
Imports System.Data
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim dtJudges As New DataTable("Judges")
Using conn As New SqlConnection("Initial Catalog=court_dms;Data Source=DINO;Integrated Security=no; User ID=norton;PWD=goldcat13")
Using cmd As New SqlCommand("SELECT * FROM court_gbs", conn)
Using da As New SqlDataAdapter(cmd)
da.Fill(dtJudges)
End Using
End Using
End Using
GridView1.DataSource = dtJudges
GridView1.DataBind()
End Sub
End Class
|