Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 1.1
This is the forum to discuss the Wrox book Beginning ASP.NET 1.1 with Visual C#.NET 2003 by Chris Ullman, John Kauffman, Chris Hart, Dave Sussman, Daniel Maharry; ISBN: 9780764557088
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 1.1 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 July 20th, 2004, 09:53 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter10

I don't want to offend the writers of this great book but I am in the middle of chapter10 and found this chapter to be the least clear so far. It assumes that explanations were made on the previous chapter that were actually not given. Like for example this line:

<asp:linkbutton text='<%# Container.DataItem("TeamName") %>

Can somebody please tell me on which page there is an explanation for the statement:"Container.DataItem("TeamName") " when do you use it, what does it do? where does it get data from? Is there any alternative? and I am asuming <%# %> kind of tells something to the compiler on Asp.Net but not really sure what.

I haven't finished chapter 10 but I am already ready to give up

Could somebody please help
Thanks
Christian

__________________
Christian
 
Old July 21st, 2004, 11:38 AM
Authorized User
 
Join Date: Jul 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Christian,

Don't fret, there is always help... I got stuck on a few chapters in this book, in fact just now I am stuck on chapter 13... Firstly the <%# %> delimeters allow you to mix source code with HTML content, the text of the link button refers to the dataItem variable TeamName.

I think this means that the database is only read once and the dtails collected are stored locally in the hashtable, the hashtable I think is referred to as the Container and within the container is dataitems. The data Items are what they are called Items of Data in this case you are going to display on the link button the text of the Team Name for which you clicked on or selected in your calander which then resides under your event handler.

Does this make sense? can anyone confirm that I am right about this ?

Anyway I wish you good luck learning this and if I can be of any further help, just give us a shout !

The.Student

What does my picture not work !
 
Old July 21st, 2004, 05:34 PM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Devanti thanks for your prompt response. I think you are right on the money. After looking long and hard at the code of teams.aspx in chapter10 I think the "container" refers to datalist.( Kind of like in java when you put labels inside a frame and the text is a value of the parent, you can request info from the parent). Since by the time it calls Container.DataItem('item') the datalist(parent) already has info binded to it. I am not really sure If my logic makes sense but since Asp.Net is suppose to be OO it kind of makes sense.

Christian

 
Old July 21st, 2004, 05:40 PM
Authorized User
 
Join Date: Jul 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Glad I could be of help Christian, so how far have you managed to get in the book ?



The.Student

What does my picture not work !





Similar Threads
Thread Thread Starter Forum Replies Last Post
chapter10: reference not set... JohnBoy BOOK: Beginning VB.NET Databases 2 May 1st, 2006 05:34 AM
Chapter10: Select multiple nemenies sagh BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 September 22nd, 2005 04:34 PM
Another question on Chapter10 czambran BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 10 March 31st, 2005 03:11 PM
error on Chapter10 yc5x BOOK: Beginning Java 2 2 September 7th, 2004 11:57 AM
chapter10 yc5x BOOK: Beginning Java 2 1 August 28th, 2004 05:21 AM





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