 |
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 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
|
|
|
|
|

April 26th, 2007, 12:00 PM
|
|
Authorized User
|
|
Join Date: Apr 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|
|

April 26th, 2007, 12:40 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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.
|
|

April 27th, 2007, 12:33 AM
|
|
Registered User
|
|
Join Date: Feb 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
You need select the event name from left list.
I am a database programmer and .Net programmer
|
|

April 27th, 2007, 06:42 AM
|
|
Authorized User
|
|
Join Date: Apr 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

April 27th, 2007, 07:40 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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.
|
|

April 27th, 2007, 07:56 AM
|
|
Authorized User
|
|
Join Date: Apr 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

April 28th, 2007, 04:37 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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.
|
|

April 30th, 2007, 05:34 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 105
Thanks: 0
Thanked 1 Time in 1 Post
|
|
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
|
|
 |