I have an ASP.NET dynamic data site and for one of the text fields within Edit and Insert templates I’d like to covert it to dropdown and populate that drop down programmatically. Can you help or point into right direction ?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What you will need to do is create a Custom FieldTemplate and use the UIHint Attribute on the column/property to direct ASP.NET Dynamic Data to use that Custom FieldTemplate in Insert and Edit mode.
see here: http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.uihintattribute.aspx
and here: http://www.asp.net/learn/3.5-SP1/