by Michael M
Data binding is the process that retrieves data from a given data source and associates it to attributes of the User Interface elements. Data binding gets data from the middle tier of an application and displays it in a nice looking html format. When you use data binding expressions with ASP.Net controls, behaviors are attached to the controls life cycle through the Data Binding event handlers. As developers of our web pages we have the power the trigger data binding events for individual controls or if we want to we can make it trigger all controls within the page. If you want to call for data binding you would use, <%# … %> and the data binding expression will update themselves if you do not want to call data bind, you can create a new page class that overrides the on load method. Data binding expressions can only be used with ASP.Net control markup and require you to call to the Data bind method.
I do not have any prior knowledge with the use of Data binding because I have never even used ASP.net. The thing that was good about reading the article was this I was able to learn a little I did not know that Data binding expressions could only be used with ASP.Net and nothing else that was a bit interesting to me. Also right now we are doing a project in class so this article ties in with what we are doing and what I need to look forward to while I work on the project this week.
The way this article tied with our class this past week. We talked about Data binding this past week and basically what you have to do is create an object that can hold data such as a data set, array, string, or int there are others but those are the primary ones that I can name off the top of my head. I learned that data binding is a powerful way to populate a Web Forms control with data. The Expression of data binding is evaluated when Data Bind() is called. Those are some of the things that were talked about during class this past week and tie to this article.
Esposito, D. (2011, July 26). Data Binding in ASP.NET Web Forms, Retrieved May 26, 2012, from http://www.sqlmag.com/article/aspnet/Data-Binding-in-ASP-NET-Web-Forms-129807