P
PK
I'm getting this error message when using a conditional in a repeater:
Compiler Error Message: CS1012: Too many characters in character
literal
According to MSDN, this message means that I'm trying to initialize a
char constant with more than one character, like:
char a = 'xx'
It's disagreeing with my use of '999999999'. I think I'm using it in
a string comparison, but apparently I'm wrong. By the way, column1 is
defined as varchar, I don't know if that matters...
Has anyone else run into this problem?
Thanks!
PK
<td>
<%# ( DataBinder.Eval(Container,"DataItem.column1") ==
'999999999') ?
DataBinder.Eval(Container,"DataItem.column2") :
DataBinder.Eval(Container,"DataItem.column1") %>
</td>
Compiler Error Message: CS1012: Too many characters in character
literal
According to MSDN, this message means that I'm trying to initialize a
char constant with more than one character, like:
char a = 'xx'
It's disagreeing with my use of '999999999'. I think I'm using it in
a string comparison, but apparently I'm wrong. By the way, column1 is
defined as varchar, I don't know if that matters...
Has anyone else run into this problem?
Thanks!
PK
<td>
<%# ( DataBinder.Eval(Container,"DataItem.column1") ==
'999999999') ?
DataBinder.Eval(Container,"DataItem.column2") :
DataBinder.Eval(Container,"DataItem.column1") %>
</td>