Feeds:
Posts
Comments

Posts Tagged ‘LinqDataSource’

As I mentioned in the previous post, with Insert, Update and Delete methods but without a Select method, LinqDataSource control looks just like a chair with only three legs! Specially when it comes to situations that you have to retrieve records programatically.
I probed alot to see if there is a work around for this problem [...]

Read Full Post »

Hi,
With Insert, Update and Delete methods but without a Select method, LinqDataSource control looks just like a chair with only three legs! Such a powerful and flexible control is used to get connected to a DataBound control like GridView, while it could excel in many scenarios if it had a Select method! For example, it [...]

Read Full Post »

Hi,
Today at  work, I had to bind a GridView control to a stored procedure through a LinqDataSource. To do this, I used LinqDataSource’s Selecting event. For example :
protected void LinqDataSource1_Selecting(object sender, LinqDataSourceSelectEventArgs e)
{  e.Result = CustomersBiz.GetAll(); }
If we bind a grid to a store procedure, the grid and LinqDataSource won’t support sorting automatically. Therefore, to [...]

Read Full Post »