What does this error mean?

J

jm

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

Thanks.
 
G

Giorgio Parmeggiani

Hi

jm said:
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">

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
 
J

jm

Giorgio Parmeggiani said:
Hi



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

Thank you. It was a long day.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top