Groups | Blog | Home
all groups > asp.net datagrid control > october 2003 >

asp.net datagrid control : What does this error mean?


john_20_28_2000 NO[at]SPAM yahoo.com
10/31/2003 2:01:47 PM
Parser Error Message: Could not load type
System.Web.UI.WebControls.Template from assembly System.Web,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.

The code in question is:

<asp:Template ColumnHeaderText="Completed"
ItemStyle-HorizontalAlign="Center">

Giorgio Parmeggiani
11/1/2003 9:02:41 PM
Hi

"jm" <john_20_28_2000@yahoo.com> ha scritto nel messaggio
news:c67e4bdd.0310311401.363e831b@posting.google.com...
[quoted text, click to view]

It means that don't exist the class Template in the
"System.Web.UI.WebControls" assembly.

The class for template column is named "TemplateColumn" not "Template", also
the property "ColumnHeaderText"
doesn't exist in the TemplateColumn class.... but it exists "HeaderText"

Then your code must be:

<asp:TemplateColumn HeaderText="Completed"
ItemStyle-HorizontalAlign="Center">

Giorgio



john_20_28_2000 NO[at]SPAM yahoo.com
11/3/2003 5:18:20 AM
[quoted text, click to view]

AddThis Social Bookmark Button