nickmollberg
Programmer
I have a dataset, and am reading values out of it, binding them to controls.
the if statement below worked fine when the column 'custnumber' was a varchar, but when converting it to a smallint, the code below no longer works (as one might imagine.)
if(sdr[ "CustNumber" ] ).Equals( "155" ) )
{
do code...
}
so, if the customer number (as read from the SqlDataReader) is 155, then do the code inside the if statement.
so, I just need the code above, but for an integer value. I've tried tons of different ways, but had no luck.
A silly question, I know, but I'm going nuts over here.
Thank you!
the if statement below worked fine when the column 'custnumber' was a varchar, but when converting it to a smallint, the code below no longer works (as one might imagine.)
if(sdr[ "CustNumber" ] ).Equals( "155" ) )
{
do code...
}
so, if the customer number (as read from the SqlDataReader) is 155, then do the code inside the if statement.
so, I just need the code above, but for an integer value. I've tried tons of different ways, but had no luck.
A silly question, I know, but I'm going nuts over here.
Thank you!