tailieunhanh - Beginning Visual Basic .NET Database Programming phần 7

Sau đó, chúng tôi mở một SqlConnection mới bằng cách sử dụng chuỗi kết nối. Tuy nhiên, như chúng ta đã học được trước đây, DataReader lấy một bản ghi tại một thời gian trong một định dạng forwardonly và chỉ đọc. Phần cuối cùng của mã lấy mỗi bản ghi trong một DataReader | Chapter 10 26 11 Way back in the mists of recent history there was a time when Microsoft wasn t particularly interested in the Internet. In fact for a while it looked like they were going to have nothing to do with the thing. But then certain strategists realized the importance that the Internet was likely to have and managed to turn the company on a dime to start churning out Web and Internet tools. One technology that sprung out of this was Active Server Pages or ASP. This was in this author s humble opinion one of the best products ever to come out of Microsoft. Strangely because Microsoft strategy was in a state of flux it was released without much fanfare yet became as popular as it is today simply because developers loved it. Essentially ASP allows developers to write software that the user can access through a Web browser rather than a separate program installed on their computer. Thanks to the nature of the Web it allows developers to write server-specific Microsoft platform code on the server but as the application is operated through HTML it s available to users on virtually any platform. Although this was and is possible without Microsoft technology ASP supported the cut down version of Visual Basic called VBScript and coupled with very powerful and easy to use database access objects such as ADO this made it possible for developers familiar with Visual Basic to build extremely powerful applications very quickly. With the advent of .NET comes Active Server Pages .NET or . This technology takes the best of ASP and enhances it to not only provide all of the power of .NET through the Framework classes but also to incorporate the powerful control-centric paradigm for building applications that we ve seen on the desktop. What this means is that if we want to put a button on a Web page for the user to click we can use the Toolbox to draw a button just as we would with a Windows Form. For this reason the technology used to construct user .