Contoh Scrift Tampil ASP.NET
Scrift Tampil ASP.NET
Imports MySql.Data.MySqlClient
Partial Class tblDataPemilik
Inherits System.Web.UI.Page
Dim cn As MySqlConnection
Dim cm As MySqlCommand
Dim dr As MySqlDataReader
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
cn = New MySqlConnection
cn.ConnectionString = "Server=localhost;User id=root;database=kontrakan"
cn.Open()
cm = New MySqlCommand("select * from tblpemilik", cn)
dr = cm.ExecuteReader()
GridView1.DataSource = dr
GridView1.DataBind()
End Sub
End Class
Partial Class tblDataPemilik
Inherits System.Web.UI.Page
Dim cn As MySqlConnection
Dim cm As MySqlCommand
Dim dr As MySqlDataReader
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
cn = New MySqlConnection
cn.ConnectionString = "Server=localhost;User id=root;database=kontrakan"
cn.Open()
cm = New MySqlCommand("select * from tblpemilik", cn)
dr = cm.ExecuteReader()
GridView1.DataSource = dr
GridView1.DataBind()
End Sub
End Class
Post a Comment for "Contoh Scrift Tampil ASP.NET"