Monthly Archives: July 2009

ListView paging with dynamic datasource

Binding a Listview with a design time datasource is very convenient,  and you can utilize the default paging function of DataPager. To use a dynamically assigned datasource with minimum code for paging, do this: Method 1: In Page.aspx: <asp:DataPager ID=”DataPager1″ … Continue reading

Posted in ASP.NET | Tagged | Leave a comment

No database-like triggers in LINQ, and things to look out

In my LINQ application, I was looking for a UPDATE trigger implementation (in LINQ of course, not in DB), so that whenever a record is taken offline, I can record the time and user who does that. This actually can … Continue reading

Posted in ASP.NET | Tagged | 1 Comment

LINQ: cache with (child) collection properties

By default, because of the “Lazy Loading” setting, LINQ won’t load the child properties collection data until they are first accessed. So for the caching purpose, we have to force it to load everything before releasing the DataContext.  This is … Continue reading

Posted in ASP.NET | Tagged | Leave a comment