Detailsview itemupdating newvalues


02-Sep-2015 17:11

After you complete the data source wizard the Form View will have controls added to it for the Item Template, Edit Item Template, and Insert Item Template.It is the Edit Item Template you are interested in.The Edit Item Template will contain Text Box controls by default.The Text Box controls provide basic data entry support for editing a record.You can use the Smart tags menu or switch to the ASP.NET view and replace the Customer ID Text Box with a Drop Down List.The Eval method in the script block implies that the Selected Value is read from the outer data source's Customer ID field.Bind and Eval perform approximately the same function, reading data from a data source. Selected Value End Sub Use Bind for the Drop Down List Selected Value and the code in Listing 1 is not needed. Modify the Customer ID by picking a Customer from the Drop Down List and click the Update button provided by the Form View designer.

detailsview itemupdating newvalues-76

Quick porn chat

The Drop Down List should be configured to look like the ASP. The Data Source ID for the Drop Down List points at Customer IDData Source.The Data Value Field and Data Text Field's are assigned to Customer ID and Company Name respectively, and lookup values will come from the Customers table.