Save your changes and close the Web.config file.
4. Open NewPhotoAlbum.aspx in Design View, locate the EntityDataSource control, and set up an event handler for its Inserting event using the Events tab of the Properties Grid. Add the following code to the handler that VS created for you: