473,396 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

hyperlind binding

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
Jun 8 '07 #1
3 1072
On Jun 8, 7:58 pm, rodchar <rodc...@discussions.microsoft.comwrote:
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

Jun 8 '07 #2
Thank you that worked great.

"Alexey Smirnov" wrote:
On Jun 8, 7:58 pm, rodchar <rodc...@discussions.microsoft.comwrote:
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

Jun 9 '07 #3
why wouldn't using true work either?

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

"rodchar" wrote:
Thank you that worked great.

"Alexey Smirnov" wrote:
On Jun 8, 7:58 pm, rodchar <rodc...@discussions.microsoft.comwrote:
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
Jun 11 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ann Morris | last post by:
INTRODUCTION One of the most powerful aspects of .NET and Windows Forms is data binding. Data binding is the process of associating user interface (UI) elements with a data source to generate a...
1
by: JD Kronicz | last post by:
Hi .. I have an issue I have been beating my head against the wall on for some time. I am trying to use late binding for MS graph so that my end users don't have to worry about having the right...
9
by: Zlatko Matić | last post by:
I was reading about late binding, but I'm not completely sure what is to be done in order to adjust code to late binding... For example, I'm not sure if this is correct: early binding: Dim ws...
1
by: Bruce | last post by:
Hi, there, I meet a problem about comboBox binding. -------------------- Database: Northwind Tables: 1) Products 2) Categories I create a form (named "form1") to edit the record from...
0
by: JSantora | last post by:
Essentially, InsertAT is broken! For the past couple of hours, I've been getting this "Parameter name: '-2147483550' is not a valid value for 'index'." error. Apparently, its caused by having...
30
by: lgbjr | last post by:
hi All, I've decided to use Options Strict ON in one of my apps and now I'm trying to fix a late binding issue. I have 5 integer arrays: dim IA1(500), IA2(500), IA3(500), IA4(500), IA5(500) as...
0
by: Steven Bolard | last post by:
Hello, I am trying to port my .net 1.1 application to 2.0. I am using vs2005. I am trying to get my webservices to run and although i can compile them and and get wsdl and service descriptions...
6
by: Mikus Sleiners | last post by:
Is there any way to enable exception throws in VS 2005, that occur during binding operations? I am upset that i can't see exceptions that are thrown during binding operations. It's very hard to...
15
by: Tom Gur | last post by:
Hi, What is early/late binding ?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.