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
>
运行的结果如下:
好了,先到这里,因为我也正在学习中
如果想要得到更多的学习资源,请到
这里
查看全文
相关阅读:
Jquery前端分页插件pagination同步加载和异步加载
Jquery前端分页插件pagination同步加载和异步加载
jQuery实现多种切换效果的图片切换的五款插件
jQuery实现多种切换效果的图片切换的五款插件
HTML5在客户端存储数据的新方法——localStorage
HTML5在客户端存储数据的新方法——localStorage
jQuery+ localStorage 实现一个简易的计时器
jQuery+ localStorage 实现一个简易的计时器
浅谈移动端页面无刷新跳转问题的解决方案
openjudge 9269:Big String超级字符串
原文地址:https://www.cnblogs.com/yang_sy/p/72467.html
最新文章
hdu 5652 India and China Origins 并查集+二分
tyvj 2075 [NOIP2012T5]借教室 区间更新+二分
codevs 1200 同余方程 逆元
逆元的各种求解方式
hdu 5651 xiaoxin juju needs help 逆元 两种求解方式
hdu 1014 Uniform Generator 数论
扩展欧几里德算法证明及代码
欧几里德算法证明 及代码
hdu 5493 Queue 树状数组第K大或者二分
Codeforces Round #324 (Div. 2)D. Dima and Lisa 数学(素数)
热门文章
Codeforces Round #323 (Div. 2) D. Once Again... 暴力+最长非递减子序列
Codeforces Round #322 (Div. 2) D. Three Logos 模拟
HDU 5475An easy problem 离线set/线段树
Codeforces Round #233 (Div. 2)D. Painting The Wall 概率DP
BZOJ1179 : [Apio2009]Atm 缩点+spfa
HDU5465/BestCoder Round #56 (div.2) 二维树状数组
BestCoder Round #56 /hdu5464 dp
BestCoder Round #56/hdu5463 Clarke and minecraft 水题
Codeforces Round #320 (Div. 2) [Bayan Thanks-Round] D "Or" Game 枚举+前缀后缀
bootstrap+fileinput插件实现可预览上传照片功能
Copyright © 2011-2022 走看看