note 47931 deleted from tutorial.useful by tularis
| From: | tularis@php.net | Date: | Mon, 06 Dec 2004 10:27:20 +0000 |
| Subject: | note 47931 deleted from tutorial.useful by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-81430@lists.php.net to get a copy of this message | ||
Note Submitter:
----
Private ds As DataSet = New DataSet()
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
'Put user code to initialize the page here
If Not Page.IsPostBack Then
binddata()
End If
End Sub
Sub binddata()
Dim sqlStmt As String = "Select * from Documentlink "
Dim conString As String = "server=localhost;database=Northwind;uid=sa;pwd=;"
Dim myda As SqlDataAdapter = New SqlDataAdapter(sqlStmt, conString)
myda.Fill(ds)
DataGrid1.DataSource = ds
DataGrid1.DataBind()
End Sub
----
Reason: spam