Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 15th, 2012, 04:25 PM
Authorized User
 
Join Date: Aug 2012
Posts: 19
Thanks: 3
Thanked 0 Times in 0 Posts
Default Chapter 14 ListView Question

When all else fails, compare my code with the supplied source code is what I say!! I'm able to get the "Customizing Templates of the ListView Control" working, but I compared the code to see what steps I had left out or misstyped. But I have one question. The following line of code was missing in my managephotoalbum.aspx markup code, and I don't know at what step it would have been entered:
The event handler(?) "OnItemInserting="ListView1_ItemInserting" was missing in my code from the ListView control <asp:Listview ID=Listview1 runat. . . . InsertItemPosition="Last Item> at the top of beginning of the code when I compared my work and the book's source code.

What previous step would have added the "OnItemInserting" command?

W!
 
Old September 16th, 2012, 09:49 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

The handler is added in step 8, page 517 of the section you mentioned.

Only if you're using C# you should have "OnItemInserting="ListView1_ItemInserting" on the GridView. For VB, this is handled by the Handles keyword in the Code Behind.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 14 ListView - part 3 MarshallN BOOK: Beginning ASP.NET 4 : in C# and VB 3 September 22nd, 2012 01:20 PM
Chapter 14 ListView - part 2 MarshallN BOOK: Beginning ASP.NET 4 : in C# and VB 0 August 26th, 2012 11:40 AM
Chapter 14 ListView MarshallN BOOK: Beginning ASP.NET 4 : in C# and VB 0 August 18th, 2012 08:19 PM
Chapter 14 Customizing Templates of the ListView Control rmanapul BOOK: Beginning ASP.NET 4 : in C# and VB 7 May 21st, 2012 04:42 AM
Chapter 14, Listview control problem SamuelMSr BOOK: Beginning ASP.NET 4 : in C# and VB 3 September 28th, 2011 02:47 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.