Imports System
Imports System.Data
Imports System.Data.OleDb
’sayfanın page load olayına bu kodu yazıyoruz,siz isterseniz başka bir kontrole bağlarsınız.(buton vs)

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim baglanti As New OleDbConnection(”Provider=MSDAORA.1;User ID=oraclekullanıcısı;password=sifresi;Data Source=databaseadı;Persist Security Info=False”)
baglanti.Open()
Dim oku As New OleDbCommand(”select * from customer_info_tab”, baglanti)
Dim okunan As OleDbDataReader
okunan = oku.ExecuteReader()
While okunan.Read()
Response.Write(okunan.Item(”customer_id”) & ” ” & okunan.Item(”name”) & “<p>”)
Response.Write(okunan.Item(”CREATION_DATE”))
End While
baglanti.Close()
END Sub