O'Reilly logo

ASP.NET Developer's JumpStart by Ken Getz, Paul D. Sheriff

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding the EditItemTemplate Section

You've created the required ItemTemplate so that you can display data, but you'll need to add the EditItemTemplate section if you want to handle editing. This template allows you to supply layout information, used only when you're editing a row of data within the DataList control. You can have completely separate layouts for displaying and for editing data.

TIP

Creating the EditItemTemplate requires a bit of care as well as some time. If you don't wish to follow these steps, you can simply copy and paste the appropriate HTML from the file Jumpstart\DataList\EditItemTemplate.txt. Paste the contents of the file within the asp:DataList element, in HTML view. We suggest that, for this template, you copy the HTML ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required