I have an ASP.NET dynamic data site and for one of the text fields in the edit and paste templates, I would like to hide it in the drop-down list and populate it programmatically. Can you help or point in the right direction?
Thanks.
What you need to do is create a custom FieldTemplate and use the UIHint attribute in the column / property to redirect the ASP.NET dynamic data to use this Custom FieldTemplate in insert and edit mode.
. : http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.uihintattribute.aspx
: http://www.asp.net/learn/3.5-SP1/
: FieldTemplate. FieldTemplate. FieldTemplate. FieldTemplate.
, , , EF, :
[DisplayColumn("columnName")] public partial class Product{}
, .
Source: https://habr.com/ru/post/1709421/More articles:ΠΠ΅Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎ ΡΡΡΠ°Π½ΠΎΠ²ΠΈΡΡ ΡΠ²Π΅ΡΠ° Π² ΡΠΎΠΎΡΠ²Π΅ΡΡΡΠ²ΠΈΠΈ Ρ ΠΏΠΎΠ΄Π΄Π΅ΡΠΆΠΊΠΎΠΉ ΡΠ΅ΡΠΌΠΈΠ½Π°Π»ΠΎΠ² Π² .screenrc - terminalΠΠΏΡΠΈΠΌΠΈΠ·Π°ΡΠΈΡ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΡ Flex - ΠΠ΄Π΅ Π½Π°ΠΉΡΠΈ ΠΌΠΎΠΈ ΡΠ·ΠΊΠΈΠ΅ ΠΌΠ΅ΡΡΠ° - optimizationGet parent element of IStructuredSelection (eclipse-rcp)? - javaHow to add my program to PATH in Windows.NET? - installerEmail notifications. In a domain object or service? - domain-driven-designThe best way to add a log to an existing application (Windows or the Internet) .Net - c #Script to add a user to MediaWiki - phphttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1709424/any-web-or-desktop-apps-out-there-like-google-wave&usg=ALkJrhiTgvxaezPAwAHy1WhOW2oDfxIB2AHow can I fix an int-to-bool warning in C ++? - c ++Is Java EE required for sleep mode - javaAll Articles