csladataprovider and arguments

csladataprovider and arguments

Old forum URL: forums.lhotka.net/forums/t/4607.aspx


checlark posted on Wednesday, April 02, 2008

I have a need to allow the user to search the DB for certain items such as return all rows where the last name is "Jones". How can I achieve this with the csladataprovider in an asp.net app? I can see no obvious way to do this for the web control. I have implemented a solution when working with the WPF and it works great. Thanks for the help!

 

Che'

RockfordLhotka replied on Wednesday, April 02, 2008

In Web Forms you'd be using the CslaDataSource rather than CslaDataProvider (nice how Microsoft chose similar, but different, names Smile [:)]).

Chapter 10 covers the process of using CslaDataSource, and the 2.1 ebook covers some important updates. Also, PTWeb includes code that should illustrate what you need - specifically the ProjectEdit and ResourceEdit pages pass parameter values to the object factory in the SelectObject event handler.

Copyright (c) Marimer LLC