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

May 6th, 2010, 08:57 AM
|
|
Authorized User
|
|
Join Date: Mar 2010
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

May 6th, 2010, 09:20 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
Did you click "Convert this field into a TemplateField" as shown in step 6 / Figure 12-13 on the same page?
Imar
|
|

May 6th, 2010, 09:30 AM
|
|
Authorized User
|
|
Join Date: Mar 2010
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Imar,
yes I did
|
|

May 6th, 2010, 09:38 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

May 6th, 2010, 10:03 AM
|
|
Authorized User
|
|
Join Date: Mar 2010
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

May 6th, 2010, 10:18 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

May 6th, 2010, 10:37 AM
|
|
Authorized User
|
|
Join Date: Mar 2010
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
|

May 6th, 2010, 10:42 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

May 6th, 2010, 11:19 AM
|
|
Authorized User
|
|
Join Date: Mar 2010
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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>
|
|

May 6th, 2010, 11:28 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|
 |