CHAPTER 6 ?– USING SERVER CONTROLS IN ASP.NET AJAX 127
Figure 6-12. TaskDataSet.xsd containing the SQL code for the main operations
Once again, you can enter most of the query information and/or other configuration
data using a graphical interface by viewing the TaskDataSet.xsd file in design mode as
shown in Figure 6-13.
Figure 6-13. TaskDataSet.xsd in design mode
CHAPTER 6 ?– USING SERVER CONTROLS IN ASP.NET AJAX 128
Whether done manually or by using this tool, the end result for the ObjectDataSource
control is the script code generated in the .aspx page as you can see in the following code
snippet:
"Delete" InsertMethod="Insert" OldValuesParameterFormatString="original_{0}"
SelectMethod="GetTasksByStatus"
TypeName="TaskDataSetTableAdapters.TasksTableAdapter" UpdateMethod="Update"
OnUpdating="ObjectDataSource1_Updating">
PropertyName="SelectedValue" Type="Boolean" />
The parameters are clearly defined by their intended operations (e.
Pages:
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203