hyperlind binding

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey all,
i having a problem binding a sql text field to a label inside a DataList.

<asp:Hyperlink ID="Hyperlink1" runat="server" Text='<%#
(Eval("FollowUp")==null)?" ":"View" %>' /><br />

It always results to the false path eventhough it shouldn't do that.

thanks,
rodchar
 
hey all,
i having a problem binding a sql text field to a label inside a DataList.

<asp:Hyperlink ID="Hyperlink1" runat="server" Text='<%#
(Eval("FollowUp")==null)?" ":"View" %>' /><br />

It always results to the false path eventhough it shouldn't do that.

thanks,
rodchar

Instead of the null try to compare with the DBNull.Value
DBNull is used for database null validation
 
why wouldn't using true work either?

<asp:Hyperlink ID="Hyperlink1" runat="server" Text='<%#
(Eval("FollowUp")==true)?" ":"View" %>' /><br />
 
Back
Top