LINQ DataSource, Where Parameters, ASP.NET

L

Light

I know that if I want to use a linq query instead of a simple "select"
query that I can override the LINQ data source selecting event. I,
also, know that I can use a Where Parameter and bind on that.

What I'd like to know though and here is the situation: I have 2
gridviews. I want one to be the parent and the other a child. It shows
a one to many relation.

On the ParentGridView Index Changed then I can set the WhereParameter
of the Child lindatasource and databind and that works.

But, what if I wanted to call instead a custom query method or write
LINQ? Is this a bad idea. My goal would be to use LINQ so that I don't
have any embedded strings
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

LINQ DataSource, Where Parameters, ASP.NET 0
linq to object query 2
Linq May CTP 2006 1
Linq Query as DataSource for all controls 0
LINQ and Gridview 2
Linq 5
Linq\MSAccess 0
Data binding with linq query 0

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top