Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 6th, 2010, 08:57 AM
Authorized User
 
Join Date: Mar 2010
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Question Chapter 12 - p406 - TryOut

Hello,

I am following the Try-Outs and in Chapter 12, p406 and I got stuck in points 9 and 10. After finishing point 8, point 9 says to remove the <EditItemTemplate> for the Authorized field (When I check the Markup, there is no such thing.
Also, point 10 is asking to modify the label control in the ItemTemplate of the Authorized field but also there is no such thing either (a label).

Any ideas?
thanks
Reply With Quote
  #2 (permalink)  
Old May 6th, 2010, 09:20 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi there,

Did you click "Convert this field into a TemplateField" as shown in step 6 / Figure 12-13 on the same page?

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!
Reply With Quote
  #3 (permalink)  
Old May 6th, 2010, 09:30 AM
Authorized User
 
Join Date: Mar 2010
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar,
yes I did
Reply With Quote
  #4 (permalink)  
Old May 6th, 2010, 09:38 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

And? Does it work now? Or is it still not woring? I can't read your mind, so some more information woudl certainly help.

Clicking the Convert link should convert the Field into a TemplateField with the labels and other controls mentioned in the text. If you're not seeing that, can you detail the steps you're following? When in Split, do you see anything happen to the code when you click the blue link?
And what version of VS are you using?

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!
Reply With Quote
  #5 (permalink)  
Old May 6th, 2010, 10:03 AM
Authorized User
 
Join Date: Mar 2010
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I tried now for the second time the process again to convert the field into a TemplateField. When I do that the little icon next to the "Authorized' word changes (probably showing that now has became a TemplateField. However, I don't notice any change on code when in Split.

When I switch to the reviews.aspx markup and search for the <EditItemTemplate> or label can't find them!

I am using VWD 2008 Express
Reply With Quote
  #6 (permalink)  
Old May 6th, 2010, 10:18 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Just for the Authorized field in this page? Or does it also not work for other fields or in other pages? That would be a serious bug....

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!
Reply With Quote
  #7 (permalink)  
Old May 6th, 2010, 10:37 AM
Authorized User
 
Join Date: Mar 2010
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I went back to the Smart Tasks of the GridView again and change (just to test whether this affects other fields as well) the HeaderText from "Title" to "Title Test". It makes the change under the Selected Fields but no change in the Markup.
Reply With Quote
  #8 (permalink)  
Old May 6th, 2010, 10:42 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

That's pretty odd. Is the file read-only? Does it contain invalid markup?

What happens when you create a brand new web site and add a single page with nothing but the control and a database connection?

You want to log a bug at http://connect.microsoft.com/

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!
Reply With Quote
  #9 (permalink)  
Old May 6th, 2010, 11:19 AM
Authorized User
 
Join Date: Mar 2010
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How do I check If the file is read-only? (don't think so though cause I added reviews earlier in the previous TryOuts).

It does not contain any invalid Markup and runs fine in the browser.

I created a new web site and put a GridView and a SqlDataSource.
I clicked the SmartTasks of GridView and added some fields. I also convert one field as TemplateField. When I pressed OK everything showed up fine in the Markup View even showing the <EditItemTemplate>
Reply With Quote
  #10 (permalink)  
Old May 6th, 2010, 11:28 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

It could be read-only in Windows, but you would have noticed it was read-only if you saved it.

Can you post the full code here? Then I'll try to reproduce it. Otherwise, it must be a bug...

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!
Reply With Quote
Reply


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
textbox binding tryout greenbriar BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 4 February 14th, 2008 08:11 PM
Generics chapter 12 difficult chapter i found ...? Larryz C# 2005 1 July 4th, 2007 09:40 PM
Errors on Chapter 12 example(12.8) sonnie ASP.NET 2.0 Professional 2 June 7th, 2006 10:55 AM



All times are GMT -4. The time now is 08:06 PM.


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