Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1062137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:34:40+00:00 2026-05-16T18:34:40+00:00

I am using ASP.NET Dynamic Data Entities project to generate a web application for

  • 0

I am using ASP.NET Dynamic Data Entities project to generate a web application for my database. I was wondering what is the easiest way to restrict the allowed values for a column without changing the database structure to make that column a foreign key or modifying the database in any way.

For example. I have a table called Assets which has an nvarchar(50) column of TypeOfAsset. I want to restrict the type of asset to “Printer”, “Desktop” or “Laptop” for example. I would like all the search and create templates to automatically use Dropdown lists for this column rather than a text field.

Would I have to create custom templates and use the UIHint attirbute? Is there some other attribute I can use in the metadata? or is there a way to restrict the values in LinqToSql, so that as far as Dynamic Data Entities are concerned, it naturally uses Dropdownlists?

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T18:34:40+00:00Added an answer on May 16, 2026 at 6:34 pm

    Found the answer here.
    http://csharpbits.notaclue.net/2009/07/dynamic-data-custom-field-template.html

    Basically creating a custom attribute and a custom field template. The attribute specifies the restricted values to display and the field template has a dropdownlist that will be populated with the comma delimited values specified in the attribute.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET Dynamic Data application (using Entity Framework) in which I have
I have a ASP.NET Web Forms application and I'm using some dynamic controls in
I'm writing a pretty complex web form using ASP.NET Dynamic Data. Several of the
Using ASP.NET Dynamic Data with a LINQ to SQL DataContext from the Northwind Database...
I am using ASP.NET Dynamic Data for a project and I have a table
i am new on asp.net Dynamic Data. my web application are not in english
I am using ASP.NET dynamic data. In Insert.aspx page, I have a couple of
I'm using ASP.Net Dynamic Data. I have the following line in my site.master page.
I am using ASP.NET dynamic data for the data adminstration tasks for a Silverlight
I'm currenlty using Asp.Net Dynamic Data, with Linq to Sql, to create an simple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.