Monthly Archives: November 2012

Visual Studio 2012 Update 1 Now Available

Somasega blog has a link. http://blogs.msdn.com/b/somasegar/archive/2012/11/26/visual-studio-2012-update-1-now-available.aspx

Posted in .Net | Tagged | Leave a comment

Moving Average / Rolling Average using C#

Say you have 1. Stateful / Period (P). 2. Series of number from 1 to 5 If the P is 3 then the answers will be 1. 1/1 = 1 2. (1+2)/2 = 1.5 3. (1+2+3)/3 = 2 4. (2+3+4)/3 … Continue reading

Posted in .Net | Tagged , , | Leave a comment

Delete all the bin and obj in Visual Studio projects under a single folder

If you are like me or someone else like to put all your testing or samples projects in one folder then the bin or obj files will 20-30% of the disk space of that folder. To get rid of all … Continue reading

Posted in .Net, Community | Tagged , , | Leave a comment

Add Button onclick event to JQuery – continue

In the previous example you need to put the script after the html. Someone might insist to put the script on top. How then?? You can actually do that by adding the $(document).ready(function () { }); So the code will … Continue reading

Posted in .Net | Tagged , , , , | 1 Comment

Add Button onclick event to JQuery

I have been reading in all sorts of forum regarding binding html button to JQuery does not work. I have seen a sample code like the one below. $(“#Button1”).click(function () {                 alert(“Your button work?”);             }); Do you think … Continue reading

Posted in .Net | Tagged , , | 1 Comment

Create Hello World Windows 8 app using JavaScript

The detail steps you can refer to http://msdn.microsoft.com/en-US/library/windows/apps/jj663502 The video explanation is here http://channel9.msdn.com/Series/Build-your-first-Windows-Store-app/JavaScript-Part-1-Create-a-Hello-world-app The only thing you cannot find is a complete solution. Download the complete code from http://skydrive.live.com. The sample file name is ConAppLINQWhere.rar. My MSN ID is … Continue reading

Posted in .Net | Tagged , | Leave a comment

Windows Phone 8 SDK support Windows Phone 7 development

You can download the Windows Phone 8 SDK from https://dev.windowsphone.com/en-us/downloadsdk

Posted in .Net | Tagged , | Leave a comment

The myth of where clause in LINQ statement

When you visit LINQ 101 (http://code.msdn.microsoft.com/101-LINQ-Samples-3fb9811b) you will find a piece of code {   int[] numbers = { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0 };     var lowNums =       from n in … Continue reading

Posted in .Net | Tagged , , | 1 Comment

Bind jQuery Grid to SQL Data using ASP.NET MVC4

I am blogging this following http://code.msdn.microsoft.com/Bind-jQuery-Grid-to-SQL-9f110ee9. You can follow everything except the step 11 code you need to add the shared layout on top. @{     ViewBag.Title = “Index”;     Layout = “~/Views/Shared/_Layout.cshtml”; }   <script type=”text/javascript”>        $(document).ready(function () … Continue reading

Posted in .Net | Tagged , | 1 Comment