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

  • SEARCH
  • Home
  • 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 492909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T02:09:38+00:00 2026-05-13T02:09:38+00:00

I have an ASP.NET Dynamic Data application that includes two tables, Departments and KPI’s

  • 0

I have an ASP.NET Dynamic Data application that includes two tables, Departments and KPI’s. When I capture KPI’s, on the ‘List’ view, I set the Department field of the dynamic filter to e.g. ‘Plant 1’, but when I add a new KPI, I still have to select ‘Plant 1’ in a dropdown.

Is there any way I can cause the dropdown in the ‘Insert’ view to correspond to the dropdown in the dynamic filter? I can just see users filtering on ‘Plant 1’, and assuming any KPI’s they add will fall under ‘Plant 1’.

  • 1 1 Answer
  • 0 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-13T02:09:38+00:00Added an answer on May 13, 2026 at 2:09 am

    I think what you want is to “Capture current filter criteria from List view when Insert link is clicked and use that filter criteria as the default values on Insert Page (ex: for foreign key relationships, DropDown Lists)”

    The Dynamic Data Futures project does something like this. Check out: http://www.codeplex.com/aspnet/Release/ProjectReleases.aspx?ReleaseId=14475 for the code. Run the “DynamicDataFuturesSample” web project and look at the section “Populate Insert templates with values from filters”


    FROM DynamicDataFutres:
    Populate Insert templates with values from filters
    By default, Dynamic Data does not prepopulate relationship (foreign key) fields in an Insert view with default values. The DefaultValueHelper class contains helper methods that set up the Dynamic Data templates in such a way that the relationship fields are populated using values from the URL…


    Also, Stephen Naughton has a blog post that solves the same problem (grabs filter criteria from query string)

    http://csharpbits.notaclue.net/2009/01/getting-default-values-from-list-page.html

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

Sidebar

Related Questions

I am using ASP.NET Dynamic Data for a project and I have a table
I have a ASP.NET application that we've written our own logging module for. My
I am using ASP.NET Dynamic Data Entities project to generate a web application for
Here's the scenario: I have an asp.net webpage which displays dynamic data in a
I have an asp.net view/page (dynamic) that is built up of nested Html.RenderPartials. The
i have an ASP.net page that generates dynamic xml but the get statement of
I have a form in my asp.net mvc(C#) application which handles some dynamic controls.
I have an asp.net web application. The application reads data from an xml. The
What choices do I have for creating stateful dynamic content in an ASP.Net web
I have asp.net form that contains fields. When I access this window, my javascript

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.