Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5.1: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-84677-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5.1 : 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 April 16th, 2017, 06:40 PM
Authorized User
 
Join Date: Mar 2017
Posts: 55
Thanks: 12
Thanked 0 Times in 0 Posts
Default Ch 13: page 463 - Item Templates

At Ch 13: page 463, step 10 - I see how to modify item templates.

Let me see if I understand this correctly.

Do I need to do this to any control where I want to set the text to a value that is generated by a function, let's say, in the code behind file?

For example - in the CreateDateTime field - if I wanted to add some conditional functionality that formats the date based on another field (just an example) - would I have to create this field as an item template as well?
 
Old April 17th, 2017, 05:47 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Yes, probably, depending on the complexity of your logic. You may be able to do some stuff inline inside the item template in markup, rather than through 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
Ch 13: page 445 - Themes = '' papadan BOOK: Beginning ASP.NET 4.5.1 : in C# and VB 14 April 21st, 2017 12:06 PM
Aligning Header & Item DataList Templates rsearing ASP.NET 2.0 Basics 2 October 5th, 2007 06:09 AM
Item Templates hbansal ASP.NET 1.0 and 1.1 Professional 6 August 2nd, 2007 06:24 AM
Functions in Item Templates wirerider ASP.NET 2.0 Basics 8 March 9th, 2006 12:09 AM
Problem with Helper Class page 463 hrabia BOOK: ASP.NET Website Programming Problem-Design-Solution 0 June 3rd, 2003 04:50 PM





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