Hi,
I'm a new boy to website design in general and VWD in particular. I'm following an exercise (6-2) in a book called 'Beginning VWD Express 2005, by Paul Sarknas.
Anyway, I created a blank project, then added and succesfully configured a sqldatasource control. Then I dropped a Gridview and connected it to the data source. Everything works well, I can see the data displayed as it should be when I build the page. Fine.
Then the excercise requires me to insert the following code in order to bind the data -
<asp:TemplateField HeaderText="UnitPrice">
<ItemTemplate>
<asp:Label ID="labelPrice" runat="server"
Text='<%#Eval( "UnitPrice" )%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
When I begin typing the <asp, the little drop down menu offers me all the possible elements, but TemplateField isn't one of them. When I've finished typing there is a squiggly line (sorry for the 'tech' speak) under TemplateField, ItemTemplate, and asp:Label. When I build and view the page there is no difference.
Why isn't TemplateView available on the dropdown list, and why isn't it recognised as an element/class? And do I really need to learn databinding to design commercial websites?
Thanks for your help in anticipation.
Michael