国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > .NET > 正文

初學VB.NET連接SQL數據庫!

2024-07-10 13:00:53
字體:
來源:轉載
供稿:網友
<%@ page language="vb" debug="true" trace="true" %>
<%@ import namespace="system.data" %>
<%@ import namespace="system.data.sqlclient" %>
<script language="vb" runat="server">
sub page_load(sender as object, e as eventargs)
dim ds as dataset
dim myconnection as sqlconnection
dim myadpt as sqldataadapter
myconnection =new sqlconnection("server='localhost';uid=sa;pwd=wenasen.com; database=credit_sql")
myadpt = new sqldataadapter("select * from admin",myconnection)
ds= new dataset()
myadpt.fill(ds,"admin")
dga.datasource=ds.tables("admin").defaultview
dga.databind()
end sub
</script>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<title>顯示sql數據庫</title>
</head>
<body>
<form id="form1" runat="server">
<asp:datagrid id="dga" runat="server" allowpaging="true" width="100%" cellpadding="1" edititemstyle-backcolor=""
headerstyle-backcolor="#00cccc" border="1" alternatingitemstyle-backcolor="#cccccc"
></asp:datagrid>
</form>
</body>
</html>

商業源碼熱門下載www.html.org.cn

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 裕民县| 皮山县| 四会市| 丰县| 洪湖市| 兴安县| 潮安县| 阿克苏市| 孝感市| 宝兴县| 邵东县| 鄢陵县| 公主岭市| 二连浩特市| 黔西县| 枣阳市| 尼勒克县| 江油市| 宣化县| 蒙山县| 明星| 朝阳市| 晋中市| 偃师市| 秦安县| 娱乐| 子洲县| 泾川县| 昌都县| 青阳县| 潞西市| 开远市| 三原县| 井冈山市| 东辽县| 泰安市| 平定县| 聊城市| 民权县| 芮城县| 石家庄市|