摘要:
asp.net数据库编程
7/17/2001 9:59:0· 天极新技术工作室·yesky
asp.net中的ado.net和asp中的ado相对应,它是ado的改进版本。在ado.net中,通过managed provider所提供的应用程序编程接口(api),可以轻松地访问各种数据源的数据,包括oledb所支持的和odbc支持的数据库。
下面介绍ado.ne......
摘要:
关于ado.net的一点补充
作者: 孙雯
这几天比较无聊,猛得想起来还有东西没有写完,所以趁着星期六,就又写了一篇.它的例子是俺和一个我们年级的mm的,嘿嘿,可别笑我,现实中没有时间泡mm,在这里可要过把隐,哈哈!(台下,原来sunwen是这样一个人,唉......)
我的先前的教程里有一篇关于ado+的,就是访问数据库的那一篇,出了之后感觉非常地不好,感觉对不起大家了,写......
PagingDatabaseResultsinASP.NET(Prt2)(转载:http://www.4guysfromrolla.com/)[登级:初级]
paging database results in asp.net
by scott mitchell
--------------------------------------------------------------------------------
asp.com/club/bbs/showannounce.asp?id=793559" target=_blank>read part 1
--------------------------------------------------------------------------------
in part 1 we looked at how to bind a dataset to the datagrid web control. however, in our live demo we noted that the sheer number of results made the data hard to consume for visitors. ideally, wed like to page this data. in this part, well look at how to implement paging using the datagrid web control. it is surprisingly easy!
database paging with a datagrid web control
to implement paging with the datagrid web control, perform the following simple steps:
set the allowpaging property of the datagrid web control to true.
set the onpageindexchanged event handler of the datagrid web control to a page-level event handler that contains the following definition:
sub eventhandlername(sender as object, e as datagridpagechangedeventargs)
...
end sub
thats all there is to it! so, in order to make the datagrid we examined in part 1 able to page data, we must first set the needed properties and event handlers of the datagrid web control. the following html content illustrates these changes:
<asp:datagrid id="dgpopularfaqs" runat="server" borderwidth="0"
&nbs...
下一页 摘要:
第三节 通过oledbdataadapte来操作数据库!
呵呵,朋友好啊!又天亮了,熬了一个晚上,现在头脑已经不是很清楚了,不过还不想休息!接着说说我们的数据库操作吧!前面我们已经说了如何操作数据库,但几乎全部是通过oledbcommand和oledbdatareader来做的,这次我们说说如何通过oledbdataadapter来操作数据库!由于oledbdataadapter是......