November 2009
M T W T F S S
« Oct   Dec »
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Test syntax hilighter

class=”brush: c-sharp; ”

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WindowsFormsApplication1
{
/* test hilighter */
class ClassAddress
{
public string Name { get; set; }
public string Street1 { get; set; }
[...]

Visual Studio Programmer Themes Gallery

See more themes goto link below

http://www.hanselman.com/blog/VisualStudioProgrammerThemesGallery.aspx
http://blog.wekeroad.com/2007/10/17/textmate-theme-for-visual-studio-take-2/

Problem with searching thai text in ms sql

Try this :

Select * from Table1 WHERE (ColumnName like N’%Values%’)

Select * from Table1 WHERE (ColumnName = N’%Values%’)

or

Select * from Table1 Where (ColumnName collate Thai_bin like N’%Values%’)

Select * from Table1 Where (ColumnName collate Thai_bin = N’%Values%’)

Format number in gridview

<asp:BoundField DataField=”prodPrice” HeaderText=”Price” HtmlEncode=”False” DataFormatString=”{0:f0}” />

Or in TemplateField

<asp:TemplateField HeaderText=”Price”>
<ItemTemplate>
<%#Eval(“prodPrice”,”{0:f0}”)%>
</ItemTemplate>
</asp:TemplateField>

Ex: {0:f0} is integer, {0:f1} is decimal with  1 digit

Google Wave

Unable to start debugging on the web server. You do not have permission to debug the application. The URL for this project is in the Internet zone.

1. In the Internet Explorer, “Tools” Menu, select “Internet Options”.

2. Switch to “Security” Tab.

3. Click on “Internet” (The Globe Icon. Its actually the default selected).

4. Click on “Custom Level” in the bottom.

5. Scroll down to find the “User Authentication” section.

6. Select “Automatic logon with current username and password”.

7. Click “Ok” twice to exit.

ref:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vsdebug.asp