Monthly Archives: April 2012

Designing XAML-based apps with Visual Studio

Surprising what VS 11 can do for xaml rather. I am not so fancy on the Blend part but the Visual Studio part. This is basic apply to xaml and not only Metro style.   http://channel9.msdn.com/Shows/Visual-Studio-Toolbox/Visual-Studio-Toolbox-Designing-XAML-based-Metro-style-apps-with-Visual-Studio-and-Blend

Posted in .Net | Tagged | Leave a comment

How to install Windows 8 Server Beta in Virtual Box (the trick)

You might see the error “This 64-bit application couldn’t load because your PC doesn’t have a 64-bit processor“ when you install Windows 8 Server Beta in Virtual Box   The is because under the Version in Create New Virtual Machine … Continue reading

Posted in .Net | Tagged , | 2 Comments

How to play mp3 file using HTML 5

Put the following code in aspx page or html page. <html xmlns=”http://www.w3.org/1999/xhtml”&gt; <head runat=”server”>   <title></title> </head> <body>   <form id=”form1″ runat=”server”>   <div>     <audio controls=”controls”>      <source src=”Wonderland.wma” type=”audio/mpeg” />    Your browser does not support the … Continue reading

Posted in .Net | Tagged | Leave a comment

How to insert picture into Crystal Report in Web Application

The will be the same as How to insert picture into Crystal Report except you put your crystal into a Webform download the sample and see how it works.       You can also download a single solution from … Continue reading

Posted in .Net | Tagged | Leave a comment

Convert complicated Group by LINQ statement from C# to VB.NET

We have a complicated LINQ statement using group by in C# like the one below. Somehow, to convert to VB.NET it is not as straightforward.   var query = (from ProductOrders in db.OrderDetails    join SelectedProducts in db.Products on ProductOrders.ProductID … Continue reading

Posted in .Net | Tagged , | Leave a comment

To change security authentication mode for MS SQL Server

1.   In SQL Server Management Studio Object Explorer, right-click the server, and then click Properties. Figure 4.1 Open properties for SQL Server   2.   On the Security page, under Server authentication, select the SQL Server and Windows Authentication mode, and … Continue reading

Posted in .Net | Tagged , | Leave a comment

How to generate the Create table script in MS SQL Server 2012

The table creation script will be automatically generated at the pane below when adding the column in the table designer.  

Posted in .Net | Tagged | Leave a comment

How to insert picture into Crystal Report

Right click on the Crystal Report page, select Insert then Picture…. Do not use gif.     You can also download a single solution from http://skydrive.live.com. The sample file name is CrystalReportsApplication1.rar. My MSN ID is chanmmn@hotmail.com.

Posted in .Net | Tagged | 1 Comment

Replace the data in Metro Style Grid Application

1. Start VS 11 2. Choose File -> New -> Project… 3. Choose Windows Metro Style then select Grid Application.   4. Copy a new png file to the Assets folder (my one is piano.png). 5. Open SampleDataSource.cs under the … Continue reading

Posted in .Net | Tagged , , | 1 Comment

Creating a Movie Database Application in 15 minutes with ASP.NET MVC

I could not remember where I downloaded the sample code for the video “Creating a Movie Database Application in 15 minutes with ASP.NET MVC”. The one that I have downloaded is without delete functionality. I have added the View (Delete) … Continue reading

Posted in .Net | Tagged , , , | 2 Comments