I\'d like to use a LinqDataSource control on a page and limit the amount of records returned. I know if I use code behind I could do something like this:
You could base your Linq query on a stored proc that only returns x number of rows using a TOP statement. Remember just because you can do all your DB code in Linq doesn't mean you should. Plus, you can tell Linq to use the same return type for the stored proc as the normal table, so all your binding will still work, and the return results will be the same type