zoukankan
html css js c++ java
【心得】create a data table in webMatrix is very easy!
我是刚
downloaded
这个工具,现在正在testing……,发现他的确很好用,比如现在你要读取数据
你首先在data窗口设置好你需要读取的数据库,然后你把目标表直接拖到页面中,然后你什么也不做,这个时候,直接运行该页面,webmatrix会自动启动web matrix server,你发现数据已经读出来了,你根本不需要设置连接字符,也不要在unload里写sub,就可以直接读出数据来了,是不是很easy…………
浏览code,发现他已经自动完成了数据度曲的代码,代码如下:
<
form runat
=
"
server
"
>
<
wmx:AccessDataSourceControl id
=
"
AccessDataSourceControl1
"
runat
=
"
server
"
ConnectionString
=
"
Provider=Microsoft.Jet.OLEDB.4.0; Ole DB Services=-4; Data Source=F:\Test\webmatrix\Dqsm.mdb
"
SelectCommand
=
"
SELECT * FROM [AllStore]
"
></
wmx:AccessDataSourceControl
>
<
wmx:MxDataGrid id
=
"
MxDataGrid1
"
runat
=
"
server
"
AllowPaging
=
"
True
"
CellPadding
=
"
3
"
BorderStyle
=
"
None
"
DataSourceControlID
=
"
AccessDataSourceControl1
"
AllowSorting
=
"
True
"
BorderWidth
=
"
1px
"
BackColor
=
"
White
"
DataMember
=
"
AllStore
"
BorderColor
=
"
#CCCCCC
"
DataKeyField
=
"
StoreID
"
>
<
FooterStyle forecolor
=
"
#000066
"
backcolor
=
"
White
"
></
FooterStyle
>
<
SelectedItemStyle forecolor
=
"
White
"
font
-
bold
=
"
True
"
backcolor
=
"
#669999
"
></
SelectedItemStyle
>
<
PagerStyle backcolor
=
"
White
"
mode
=
"
NumericPages
"
horizontalalign
=
"
Center
"
forecolor
=
"
#000066
"
></
PagerStyle
>
<
HeaderStyle forecolor
=
"
White
"
font
-
bold
=
"
True
"
backcolor
=
"
#006699
"
></
HeaderStyle
>
<
ItemStyle forecolor
=
"
#000066
"
></
ItemStyle
>
</
wmx:MxDataGrid
>
<!--
Insert content here
-->
</
form
>
运行的结果如下:
好了,先到这里,因为我也正在学习中
如果想要得到更多的学习资源,请到
这里
查看全文
相关阅读:
树系列学习--树的定义(-)
idea live template高级知识, 进阶(给方法,类,js方法添加注释)(二)
mysql 查询所有子节点的相关数据
maven util 类 添加 service
idea live template高级知识, 进阶(给方法,类,js方法添加注释)
idea live template
eclipse 好用的插件总结
Spirng+SpringMVC+Maven+Mybatis+MySQL项目搭建
Mac OS 的命令行 总结
jsp,jquery,spring mvc 实现导出文件
原文地址:https://www.cnblogs.com/yang_sy/p/72467.html
最新文章
MySQL修改root密码的各种方法整理
PYTHON的程序在LINUX后台运行
UITableViewCell背景色.选中背景色,分割线,字体颜色设置
iOS获取APP的版本号和名称
IOS常用正则表达式
AFNetworking 3.0
错误信息 NSError
iOS登录及token的业务逻辑
AFNetworking
在iPhone开发中实现解压缩gzip
热门文章
'config.h' file not found 解决过程
学会清理.rncache 文件、清理已经安装的三方文件,三方引入文件
[!] CocoaPods could not find compatible versions for pod "Folly"问题举例
node 随便升级到最新版本的遭遇
CocoaPods 遇到 A host target is a "parent" target which embeds a "child" target 问题解决
Mac OS系统四种修改Hosts文件的方法列举
初始化Weex项目遇到的问题记录
Mac OS系统 sublime text3 常用快捷键记录
error: Build input file cannot be found: '*******/node_modules/react-native/Libraries/WebSocket/libfishhook.a' 问题解决记录
React Native 'config.h' file not found 问题、 'glog/logging.h' file not found 问题、configure: error: C compiler cannot create executables问题、a nonzero exit code问题解决过程记录
Copyright © 2011-2022 走看看