養生之道

五行養生

Posted in Health | Leave a comment

Search Engine Optimization (SEO)

After you create a website, you certainly want other people to find your website easily from leading Search Engines.  On my blog on biswaretech.com, I explain some Search Engine Optimization technique.  Please feel free to visit it.
Posted in Computers and Internet | 6 Comments

Disable Browser’s Back Button

Occasionally, you may not want your visitors move back to the previous page using the browser’s back button. However, there is no easy way to do that. One work-around is to create a dummy page which redirects your visitors to your actual page.

Please visit my other blog for script and demo.

Posted in Computers and Internet | 1 Comment

ASP.Net on IE8

Many people find problem with ASP.Net pages after installing IE8.  One of the most problematic controls is ASP:Menu.  In fact, this control has problem with other browsers if it is not coded properly.
 
In my other blog, I try this control on various browser.  I aslo add code on these pages to ensure this control works on all popular browsers.
Posted in Computers and Internet | 1 Comment

.Net Number Formatting

In computing, numeric data are stored as number datatype.  Number datatypes are useful for mathematic calculation but raw number does not format nicely for readability.  If we want to display number to user in special format, we may need to do something extra.  For example, we may want an integer  of 1234 to be displayed as 1,234.00 or 001234 or HK$1,234.

All datatype of Microsoft .Net platform has a ToString() method. Numeric datatype’s ToString() method further allows you to apply various style to the number before converting it to string.  The following table shows some numeric values converted to string with various styles using ToString() method.

Value of myNumber

ToString() Method

Output

123

myNumber.ToString("00000")

00123

1234567

myNumber.ToString("#,#")

1,234,567

123.4

nyNumber.ToString("#.#0")

123.40

1234

myNumber.ToString("##;(##)")

1234

-1234

myNumber.ToString("##;(##)")

(1234)

12345

myNumber.ToString("HK$#,#.#0")

HK$12,345.00

0.012

myNumber.ToSting("#0.##%")

1.2%

You can see a simple demo at http://www.biswaretech.com/blog23.aspx.

 

Posted in Computers and Internet | 1 Comment

SQLExpress and Access Database – A Comparison

Small businesses that are adopting small applications with databases have a number of non-expensive choices. My blog at http://www.biswaretech.com/blog19.aspx compares two Microsoft products – Access 2003 and SQLExpress 2005 as a database for small application.

 

Posted in Computers and Internet | 2 Comments

Windows Communication Foundation – C# and VB.Net Code Comparison

Windows Communication Foundation (WCF) is a new SOA technology aiming at unifying earlier distributed technology such as ASP.NET Web Service, .Net Remoting, Enterprise Services. There are quite a number of good books published in 2007 and 2008. Unfortunately, most of them are written with reference to C# code.  In this connection, I wrote a C# and VB.Net code comparison for WCF in my other blog (http://www.biswaretech.com/blog16.aspx).  Please feel free to visit it if you are a VB.Net developer.

Posted in Computers and Internet | 6 Comments