6

Does anyone know how to add a simple search textbox on an ASP.NET Dynamic Data list page? I want to be able to drill down to a specific row immediately, without having to use the dynamic data filters to narrow the scope.

animuson
  • 53,861
  • 28
  • 137
  • 147
Thomas Vochten
  • 380
  • 1
  • 4
  • 12

4 Answers4

5

The CodePlex project named ASP.NET Dynamic Data Filtering makes it possible to easily search any information on your site even if you use the Dynamic Data framework from ASP.NET 3.5. Follow these instructions to get a search textbox.

Pontus
  • 2,769
  • 4
  • 20
  • 13
  • @pnotus your link took me to a parked godaddy page. Please fix your link, I'd really like to see the page. – Jason Marcell Nov 09 '09 at 14:52
  • Josh says "You will see an action called UpgradeData source appear in the Action popup, hit it." however I did not see that action and thus was not able to get this to work. Anyone experience that? – Jason Marcell Nov 11 '09 at 00:46
2

The new Dynamic Data 4 preview includes a Data Source called a BusinessLogicDataSource, here are some examples of how you can use it to implement search.

http://quickstarts.asp.net/previews/dynamicdata/dd_AddSearchtoDynamicData.htm

I can't really say how to do it in the current implementation of Dynamic Data, I was searching for this answer as well and stumbled onto both the preview site and this question.

1

if you are using .NETv4 then look at this sample of extending the filtering support in dynamic data Text Filtering in dynamic data

pranav rastogi
  • 4,124
  • 23
  • 23
0

You might also consider one of the implementations of search in ASP.NET Dynamic Data Site that works great: Adding a Multi-Column Search to the Default List page in Dynamic Data.

Konstantin
  • 796
  • 1
  • 11
  • 32