ASP.NET Dynamic Data Change the text box in the drop-down list and populate some data

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.

+3
source share
3 answers

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/

+1

, , , EF, :

[DisplayColumn("columnName")]
public partial class Product{}

, .

-2

Source: https://habr.com/ru/post/1709421/


All Articles