Re: If Expression!

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Here is one solution i came up with.

txtAnswerUrl.Text = Rdr("answer_url").ToString() 'coverts to null string i
imagine

Should I be doing this when populating textboxes with db values?

Or is their a better i should be doing it, but haven't used yet?

Adam


"Adam Knight" <adam@xxxxxxxxxxxxxxx> wrote in message
news:OICoKlauFHA.3792@xxxxxxxxxxxxxxxxxxxxxxx
> Hi all,
>
> Having trouble with this expression.
> Can anyone tell me what i am supposed to be doing?
>
> If(Rdr("answer_url") <> System.DBNull.Value) Then
> txtAnswerUrl.Text = Rdr("answer_url")
> End If
>
> Cheers,
> Adam
>


.


Quantcast