Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8
This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 by Chris Hart, John Kauffman, David Sussman, Chris Ullman; ISBN: 9780764588501
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 26th, 2007, 12:00 PM
Authorized User
 
Join Date: Apr 2007
Location: , , .
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 6 page 191 number 6

I double clicked where it asked but it only opens the code editor but it does not create the empty event procedure for me.

Is this common or a setting I must change to have this happen?
  #2 (permalink)  
Old April 26th, 2007, 12:40 PM
Imar's Avatar
Wrox Author
Points: 72,035, Level: 100
Points: 72,035, Level: 100 Points: 72,035, Level: 100 Points: 72,035, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,079
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi there,

I don't have the book, so it's hard to see what's going on. Can you describe the steps in more detail?

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
  #3 (permalink)  
Old April 27th, 2007, 12:33 AM
Registered User
 
Join Date: Feb 2007
Location: Madison, SD, USA.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to condescendent Send a message via Yahoo to condescendent
Default

You need select the event name from left list.

I am a database programmer and .Net programmer
  #4 (permalink)  
Old April 27th, 2007, 01:04 AM
Imar's Avatar
Wrox Author
Points: 72,035, Level: 100
Points: 72,035, Level: 100 Points: 72,035, Level: 100 Points: 72,035, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,079
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

What left list?

Sorry; maybe someone who does have the book can answer this.

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
  #5 (permalink)  
Old April 27th, 2007, 06:42 AM
Authorized User
 
Join Date: Apr 2007
Location: , , .
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It ask you to click the event button in the properties window and douple click the ItemDataBound event for the datalist control and it should open the code editor for that page and you should be in side a empty event procuder for ItemDatBound.

All it does is open code editor and does not creat the empty event.

PEACE
  #6 (permalink)  
Old April 27th, 2007, 07:40 AM
Imar's Avatar
Wrox Author
Points: 72,035, Level: 100
Points: 72,035, Level: 100 Points: 72,035, Level: 100 Points: 72,035, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,079
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hmmm, that's weird. It should behave the way as you described.

Are you sure your page is in a valid state? Do you have a web page with code behind? What happens when you right-click the page in the Solution Explorer and choose Build Page? Do you get any errors?

And what happens when you try this in a brand new web site with a single page and nothing but a DataList control on it?

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
  #7 (permalink)  
Old April 27th, 2007, 07:56 AM
Authorized User
 
Join Date: Apr 2007
Location: , , .
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I got it to work when I type it out but when I double click it would not work. But if I go to the the end folder chapter 6 where it is already done and double click it works fine. Guess its just a fluke.

PEACE
  #8 (permalink)  
Old April 28th, 2007, 04:37 AM
Imar's Avatar
Wrox Author
Points: 72,035, Level: 100
Points: 72,035, Level: 100 Points: 72,035, Level: 100 Points: 72,035, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,079
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Yeah, maybe it was a problem with the markup for the page. However, since you didn't answer the other questions I asked, it's hard for me to tell.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
  #9 (permalink)  
Old April 30th, 2007, 05:34 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Banbury, , United Kingdom.
Posts: 105
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to DanM
Default

I think condescendent is confusing issues here.
If you're working in design view, you should be able to select the DataList in the design window, then find the Properties window, select the 'lightning bolt' icon to bring up a list of events for a DataList and double-click the empty box next to the entry for ItemDataBound. VWD or VS will then open DataEvents.aspx.cs, and add an empty event handler called DataList1_ItemDataBound in the code.

If that doesn't work, try going back to the properties window, and type in the function name for the event handler and hit return. With any luck, VWD should then generate the empty event handler as required.

If it doesn't, you mgiht like to make sure the code you're working with is not marked Read Only; check by right clicking the Chapter 06 folder in Windows Explorer, selecting properties and unchecking the Read Only box.

I hope that helps

Dan



Dan Maharry
Read the feed at http://feeds.feedburner.com/dansarchive
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 6 - scaffold error, wrong number of args davidtspf BOOK: Beginning Ruby on Rails 12 August 13th, 2010 11:20 PM
Example on p. 191 does not work. mark4asp BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6 1 November 1st, 2007 01:40 PM
How can i create a number of page of group?? tetrap Crystal Reports 0 September 10th, 2006 10:08 AM
Page Number Issue dingarim XSLT 0 August 22nd, 2006 02:23 PM



All times are GMT -4. The time now is 10:25 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.