Question
having trouble with C# dynamic text
works in VB.NET but not C#.NET
<%# rs1.FieldValue("TotalCount1", Container) * 49 + rs2.FieldValue("TotalCount2", Container) %>
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0019: Operator '*' cannot be applied to operands of type 'string' and 'int'
<%# rs1.FieldValue("TotalCount1", Container) * 49 + rs2.FieldValue("TotalCount2", Container) %>
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0019: Operator '*' cannot be applied to operands of type 'string' and 'int'