Advertisement

07.23.2008 at 04:01AM PDT, ID: 23587989
[x]
Attachment Details

Null Value problem when binding repeater value

Asked by shieldguy in Programming for ASP.NET, .NET, Microsoft Visual Basic.Net

Tags: ASP.NET, ASP.NET, Public member 'ToShortDateString' on type 'DBNull' not found

I am getting the error while binding the date value in a repeater control

Error :
Public member 'ToShortDateString' on type 'DBNull' not found

I dont understand that instead of putting in the validation check this still giving me the same error
I would really appriciate a quick reply

ThanksStart Free Trial
1:
<FONT FACE="Arial" SIZE="2"><B><%#IIf(Container.DataItem("OrderDate") Is DBNull.Value, "&nbsp;", DataBinder.Eval(Container.DataItem, "OrderDate").ToShortDateString)%></B></FONT>
[+][-]07.23.2008 at 04:04AM PDT, ID: 22067809

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Programming for ASP.NET, .NET, Microsoft Visual Basic.Net
Tags: ASP.NET, ASP.NET, Public member 'ToShortDateString' on type 'DBNull' not found
Sign Up Now!
Solution Provided By: jpaulino
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.23.2008 at 04:04AM PDT, ID: 22067812

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628