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 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
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: Tom Gur |
last post by:
Hi,
What is early/late binding ?
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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...
|
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,...
| |