aspx中的mysql操作类sqldatasource使用示例分享
时间:2024-01-21 17:10:14
<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtmlll/DTD/xhtmlll.dtd">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>asp.net to mysql</title>
</head>
<body>
asp.net connect mysql
<form id="forml" runat="server">
<div>
<asp:GridView ID="GridViewl" Runat="server"
DataSourceID="SqlDataSourcel">
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSourcel" Runat="server"
ProviderName="System.Data.Odbc"
ConnectionString= "DRIVER={MySQL ODBC 3.51 Driver};SERVER=localhost;DATABASE=test;UID=test;PASSWORD=testtest;"
SelectCommand="Select * from dede_admin"
>
</asp:SqlDataSource>
</div>
</form>
</body>
</html>
标签:mysql操作,sqldatasource
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
中秋快到了利用python画个月亮和月饼
2021-09-16 13:55:51
![](https://img.aspxhome.com/file/2023/1/96451_0s.png)
用PHP+java实现自动新闻滚动窗口
2023-11-22 12:31:01
Go channel结构体源码和读写和关闭过程详解
2024-04-26 17:31:08
python使用百度翻译进行中翻英示例
2021-04-08 20:10:11
学习JavaScript设计模式之中介者模式
2024-04-17 10:07:57
浅析Python 简单工厂模式和工厂方法模式的优缺点
2023-08-04 00:15:00
![](https://img.aspxhome.com/file/2023/5/62015_0s.png)
Python %r和%s区别代码实例解析
2023-10-07 17:01:08
go语言LeetCode题解720词典中最长的单词
2023-08-05 19:46:04
C#动态创建Access数据库及密码的方法
2024-01-17 21:37:21
![](https://img.aspxhome.com/file/2023/0/92980_0s.jpg)
escape解决AJAX中文乱码的简单方法
2008-10-23 14:32:00
oracle锁表该如何解决
2024-01-23 20:28:38
golang中的并发和并行
2024-04-26 17:15:11
mysql 显示SQL语句执行时间的代码
2024-01-16 03:25:14
深入讲解Python中的迭代器和生成器
2021-11-29 05:32:56
![](https://img.aspxhome.com/file/2023/1/72201_0s.jpg)
PHP设计模式(八)装饰器模式Decorator实例详解【结构型】
2023-11-24 05:59:31
![](https://img.aspxhome.com/file/2023/5/111355_0s.jpg)
pygame实现俄罗斯方块游戏(AI篇2)
2022-03-02 13:03:10
![](https://img.aspxhome.com/file/2023/7/69527_0s.jpg)
ORM框架之Dapper简介和性能测试
2024-05-03 15:30:44
SpringBoot项目application.yml文件数据库配置密码加密的方法
2024-01-18 02:12:40
![](https://img.aspxhome.com/file/2023/9/70329_0s.png)
为什么从Python 3.6开始字典有序并效率更高
2021-03-26 15:29:36
![](https://img.aspxhome.com/file/2023/1/128261_0s.jpg)
这些CSS Selector,你都熟悉吗?
2008-12-21 16:30:00