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.
#"callback" here is the callbackhandler passed in 2) ======================= try catch (Exception exception1) finally ======================== Thus, you can see why you'll get the exception through the event argumenet in the Form View. If you have interests, you can use the reflector tool to inspect the diassembly code of the Form View and Data Source View for a clearer view.
If you have anything unclear above or anything else we can help, please feel free to let me know.
Can you explain this and let me know how I can get around it?
Thanks again Andrew OK, I have to check for an exception in here too.
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 Text Box controls provide basic data entry support for editing a record.
To demonstrate data binding for a Drop Down List in a Form View switch the Form View to the Edit Item Template.
Is there a better or more appropriate technique I could use?