MaskEdit Question

3 posts, 1 answers
  1. L
    L avatar
    298 posts
    Member since:
    Apr 2008

    Posted 22 Dec 2009 Link to this post

    hi

    I have this code:

      <telerik:RadMaskedTextBox ID="DOBTextBox"  Text='<%# Bind("DOB") %>'  runat="server" Mask="##/##/####">
                    </telerik:RadMaskedTextBox> &nbsp; day/month/year

    But when i looked at the stored value in the DB, it show 23122009. How can i capture 23/12/2009 format in the DB?

    I am using Nvarchar(20) for my DOB field. thanks
  2. L
    L avatar
    298 posts
    Member since:
    Apr 2008

    Posted 23 Dec 2009 Link to this post

    hi

    All i want is display it in grid in this format 23/12/2009 rather then 23122009.

    Since i am using masktextbox. How should i display the format 23/12/2009. Thanks
  3. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 23 Dec 2009 Link to this post

    Hello,

    Try TextWithLiterals instead of Text.

    ASPX:
     
    <telerik:RadMaskedTextBox TextWithLiterals='<%# Bind("DOB") %>' ID="DOBTextBox" 
            runat="server" Mask="##/##/####"
        </telerik:RadMaskedTextBox> 

    -Shinu.
Back to Top