Results 1 to 2 of 2

Thread: date time picker

  1. #1

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075

    date time picker

    is there way to keep my dtp control blank if the data in the database is DB.NULL?...something like this.


    VB Code:
    1. If objDR("cancelled_date") Is DBNull.Value Then
    2.                     dp2.Value = "  "
    3.                 Else
    4.                     dp2.Value = objDR("cancelled_date")
    5.                 End If
    Last edited by EyeTalion; Apr 21st, 2004 at 10:37 AM.
    It's tough being an unhandled exception...

    ___________
    VB.NET 2008
    VB.NET 2010
    ORACLE 11g
    CRYSTAL 11

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    You would think so wouldn't you. No, unfortunately, you will have develop your own calendar control (inherit from a webcontrol class) or use a third-party.

    Or check out the ASP.Net Resource kit Microsoft distributes freely from their ASP.NET page. I think there is probably a better calendar control available in there.
    Last edited by nemaroller; Apr 21st, 2004 at 01:14 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width