preview

Nt1330 Unit 2 Research Paper

Decent Essays

Patricia Guerrero
Michael Ekedahl
IS 460 Take Home Final

1. In class, we discussed the topic of binding expressions. Discuss the data binding syntax and its purpose. Explain how the Eval and Bind functions operate. Discuss how binding expressions can be used to reference publicly scoped code. Provide examples of the binding expressions that you discuss.
The data binding expressions are always contained inside . The purpose of the syntax is to bind controls to data that can come from a data source like a database. Other forms of data source include anything that is enumerated or ADO.NET DataSet. A data binding expression will not work if it is not located inside the syntax.

The Eval function defines a one-way read-only binding, while the Bind …show more content…

Describe the relationship between a DataTable and a GridView control. Your answer should address the concept of data binding. Describe how to bind directly (programmatically) a GridView control to a DataTable

In class we created dataTables that were created in SQL Management Studio. We then used SqlDataSource to create the connection string that would access the database where the tables were located. The DataTables contain the columns and rows that are bounded with the Gridview control. The way they are bound is by choosing the data source for the GridView and selecting the SqlDataSource you are working with.

It should look like this: The SqlDataSource doesn’t do the “whole” job it needs a data bound control like a Gridview. The DataKeyNames specifies the PK (primary key). The DataSourceID tells what data source to point to. What happens with the relationship is that it allows for the page to show pretty much the table that is stored in the database. It also allows for users to edit, delete, and select a record.
The code that shows the binding of the datatable to a gridview is shown

Get Access