NET view and replace the Customer ID Text Box with a Drop Down List.
Next you will need to configure the data source for the Drop Down List and bind the Drop Down List to the source for the list items and the source for the selected value.
The following tables list the members exposed by the Form View type.
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.
The difference is that Bind is a two-way bind (read and write) and Eval is a one way bind (read-only) from the Data Source. Item Updating Dim control As Drop Down List = Form View1. If you use Eval then remember that the Drop Down List is in a template of the Form View, so you have to get the actual Drop Down List by calling Find Control and setting the updated value to the e. The running form is shown in Figure 3, and the ASP.
An old friend of mine, Joe Shook, laughingly said, you should read what other people write too once in a while. Of course, he was right and naturally I do. I read almost everything I can get in my hands including technical books, blogs, and articles because I am surprised by the number of things I haven't mastered or that I still don't have a best practices sort of solution for. Thankfully I am still willing to stay up to 11 or 12 o'clockused to be until the next morningworking out the details of what I don't know until I am happy with an answer.
A friend of mine actually asked me about this particular problem: what is a good way to bind a Drop Down List in a Form View.