Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am getting the following error:


BC30311: Value of type 'System.Globalization.CultureInfo' cannot be converted to 'String'.




Please help me to clear this error.



XML
Source Error:



Line 131:
Line 132:   <ItemTemplate>
Line 133:   <asp:Label ID="designation" Text='<%#databinder.Eval(Container.dataitem,"designation" %>' runat="server" >
</asp:Label>
Line 134:   </ItemTemplate>
Line 135:   </asp:TemplateField>
Posted
Updated 4-Dec-12 17:22pm
v3
Comments
AshishChaudha 4-Dec-12 23:48pm    
I think the error is not generated from the code mentioned...please debug your code..The error is generated where you have used the cultureInfo object.

1 solution

Hi there,
I had this error too - you're missing a bracket at the end of the databinder call.

Line 133: <asp:label id="designation" text="<#databinder.Eval(Container.dataitem,"designation" ) %>" runat="server" xmlns:asp="#unknown">;
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900