Archive for the ".NET" category
Overview Apart from Paging Support, one of the features that Repeater lacks is the "Empty Data Template" that will be shown when there is no result too display. MONA blogged a very simple method to implement a "Empty Data Template" for Repeater, and this implementation does not include writing anything in code behind. [...]
Overview Repeater is very useful in displaying data with a fully customized layout. However, repeater does not have built-in paging support. I found an article in "4GuysFromRolla" by "Harrison Enholm", talking about how to add paging support to the Repeater or DataList, with the use of "PagedDataSource" Class. Reference Adding Paging Support [...]
Overview In my previous blog post Globalization of ASP.NET with Resources File, I talk about my experience in providing multi-language support for an ASP.NET web app. In that example, the web app get the cultures from preference of user’s browser. If a user wants to change the preferred culture, he/she has to change it [...]
Overview Resources files can be used to provide multi-languages support in ASP.NET web applications. The web app can be set to display different languages based on the settings of client browser. Following shows how to use resources files in a web application project. Reference ASP.NET Web Page Resources Overview [...]
Overview By default GridView allows us to delete only a record (a row) at a time, it will be better if we can select multiple rows with check boxes and delete them in a batch. Reference Deleting Multiple Rows in a GridView delete multiple rows from [...]
Overview In my previous blog – NHibernate Setup, I shared my experience on setting up NHibernate with ASP.NET and SQL Server 2005 Database. Now I would like to talk about my experience on connecting NHibernate to Oracle Database. Reference As long as ODP.NET is under the hood – NHibernate [...]
Overview Just like Hibernate, NHibernate returns query result in List of Objects (that’s the idea of O/R mapping). It is very good, but some ASP.NET tools only work with DataSet, so we have to explicitly convert the iList returned by NHibernate to DataSet. The following simple code snippet mainly copied from Ayende’s Blog can [...]
Overview Hibernate offers O/R mappings between Database and Java persistence classes. Many Java programmers get used to Hibernate would like to use the same technology (and syntax!) on their .NET projects too~ The answer to this is called NHibernate. Below I will share my experience on how to set up NHibernate [...]