The Data-Bound Web Form
Now that we’ve laid the groundwork, we can begin discussing how data binding works in a Web Form. Remember that the form as displayed on the user’s screen is standard HTML. This means that all of the binding must be done before the HTML is emitted and transferred to the client. This is accomplished by the controls emitting their tags with the value attribute set to the value of the current row and column in the DataSet to which the control is. So you can see that the data binding can only be one-way. When the user posts the form back to the server, the data comes back in the Request.Forms (“ControlName”) format, so there is no way to support two-way binding.
Creating the Project
Let’s create our demo project called ADOBook09-01. ...
Get ADO.NET Programming in Visual Basic™ .NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.