locked
Input Mask RRS feed

  • Question

  • User-326746839 posted

    Hi,

    In standard ASP.Net Dynamic Data you have available the page template and field templates that are provided by default: text, date, numeric, etc.

    In order to have some kind of input mask and/or validation for you data entry, you use a MetaData file in which you add sentences like 

    [DisplayFormat(DataFormatString = "{0:D}")]

    BUT you must do this for every field of that type in your model as to achieve the expected result so I was wondering if there might be a way in which you can add this type of coding in my FieldTemplate's behind source code instead of the MetaData file. In that way, all fields will use this type of data entry mask all at once without having to add the code in my MetaData file

    Is that possible at all?

    Best Regards

    Carlos N. Porras
    (El Salvador) 

    Saturday, April 13, 2013 2:19 PM

Answers

All replies

  • User-326746839 posted

    Answered by http://forums.asp.net/members/Rion%20Williams.aspx in another forum

    Carlos N. Porras
    (El Slavador) 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, April 17, 2013 4:12 PM
  • User260886948 posted

    Hi,

    I am very glad that you have solved the problem.

    If you have any other problem, welcome to post it in the asp.net forums.

    Best Regards,
    Amy Peng 

    Thursday, April 18, 2013 5:02 AM