Archive for August, 2008

 

Silverlight Get-started tutorial

 
Overview To get started with Silverlight, I search for tutorial on web and found this blog by Scott Guthrie giving out a tutorial on building a complete Silverlight application with VS 2008. Reference First Look at Silverlight 2 Microsoft Silverlight Tools Beta 2 for Visual [...]

Continue reading

 
 

Sending test email through Telnet

 
Overview How to test if a SMTP server function properly in sending email? The simplest way is to send a test email. In this blog I will talk about how to send a simple test email by Telnet to the SMTP server. Reference How Simple is SMTP? Steps [...]

Continue reading

 
 

Globalization of ASP.NET with Resources File

 
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 [...]

Continue reading

 
 

Multiple Delete in GridView

 
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 [...]

Continue reading

 
 

Connecting NHibernate to Oracle Database

 
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 [...]

Continue reading

 
 

Convert NHibernate result iList to DataSet

 
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 [...]

Continue reading

 
 

Using CopySourceAsHtml in VS 2008

 
Overview CopySourceAsHtml (CSAH) is a very useful tools for us "Programming Oriented Blogger". But after I switched to VS 2008, I soon found that there is no CSAH officially supporting it. Luckily with a little bit of googling, I was able to find a couple of Blogs of how to use CSAH in VS [...]

Continue reading

 
 

Hibernate for .NET – NHibernate Setup

 
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 [...]

Continue reading

 
 

Changing the default browser used in VS 2005/2008

 
Overview I always use Firefox except browsing SharePoint sites (or sites with Active-X). However when I was debugging my projects with VS 2005/2008, I don’t want it to use Firefox to open aspx pages. With a little bit of searching, I found below page showing how to set default aspx browser in VS (it [...]

Continue reading