There may be an example here that can help.
http://msdn.microsoft.com/en-us/vcsharp/aa336746.aspx>Hi
>
>I'm trying to add a where parameter at run time to a linqdatasource.
>
>I want to filter the records returned except for an admin use who will get all of them.
>
>Anyone got any examples of adding a where parameter.
>
>also is it best added in the page_load or elsewhere.
>
>
>Thanks
>
>Nick
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer