adsense

Wednesday, November 28, 2012

Enabling jQuery Intellisense in Visual Studio 2010

When working with jQuery Visual Studio 2010 does not provide the usual intellisense by default. Following article describes a step by step instructions on how to enable intellisense support.

http://blog.tangcs.com/2011/03/29/jquery-intellisense-visual-studio-2010/

Cheers
Samitha

Tuesday, November 27, 2012

ASP.NET GridView Data Filter Control

If you want provide user the option of adding search filters that would enhance their search experience. This can be achieved by using a custom web user control. Following post give you detailed steps with code to achieve it.

Cheers
Samitha

Sunday, November 25, 2012

IE 10 preview for Windows 7

You can experiment with IE 10 preview  for Windows 7 by downloading it from here. It is designed to provide the best experience of web on Windows.

Read More here

Cheers
Samitha

Saturday, November 24, 2012

SQL Server intellisense crashes when VS 2010 SP1 Installed

SQL server 2008 intellisense is not shown after you have installed Visual Studio 2010 SP1. To resolve this you'll have to install the latest service pack for SQL Server 2008.SQL Server SP 2 can be downloaded from here.

If you need an intellisenseis with more features I highly recommend using Redgate's SQL Toolbelt.  It provides features which includes SQL comparison, SQL source control, SQL Data Generater , SQL Backup and many more.

Cheers
Samitha

Thursday, November 22, 2012

Microsoft SharePoint Server 2013 and Office Professional Plus 2013

Start building a new class of apps with Office and SharePoint. Download Microsoft Office Professional Plus 2013. Code samples, development tools, and training are available now with your free evaluation.

Cheers
Samitha

Wednesday, November 21, 2012

Testing for Continuous Delivery with Visual Studio 2012


Testing was newer so easier than this book explains. this book guides you on generating repetable tests, automating tests and run them virtually.

Read more and download the book

http://msdn.microsoft.com/en-us/library/jj159345.aspx 

Cheers
Samitha

Wednesday, November 14, 2012

javascript for validating numeric text

Following javascript can be used to validate numerical values for a textbox. This validates  numbers without decimal points. If you want to validate decimals and thousand separators as well , you'll have to change the regex and call another javascript onblur event to validate the thousand separator and decimal point. I will post the javascript for this soon.

<script type="text/javascript">

 function validateOnlyNumber(evt) {
        var theEvent = evt || window.event;
        var key = theEvent.keyCode || theEvent.which;
        key = String.fromCharCode(key);
        var regex = /^\s*\d+\s*$/;
        if (!regex.test(key)) {
            theEvent.returnValue = false;
            if (theEvent.preventDefault) theEvent.preventDefault();
        }
    }

        function checkNumbers() {
            var ValidChars = /^\s*\d+\s*$/;
            var pasteData = window.clipboardData.getData("Text");


            if (ValidChars.test(pasteData))
                return true;
            else {
             
                return false;
            }
        }

        
 </script>


Call the functions as follows

<asp:TextBox ID="txtSearch" runat="server"   onpaste="return checkNumbers()"  onkeypress='validateOnlyNumber(event)'></asp:TextBox>

Cheers
Samitha

Tuesday, November 13, 2012

Dealing with DOM events

There are some events that will help us to achieve some tasks that are not directly visible through standard events. These are DHTML events and they are invisible in intellisense or properties window of the IDE simply because ASP.NET doesn't know them, and  they will be rendered to the client. There are number of DOM events as such and you can find more details in the MSDN site.

http://msdn.microsoft.com/en-us/library/ms533051.aspx

Cheers
Samitha

Saturday, November 10, 2012

warn user when caps lok is on

This can be a good addition to reduce frustration users might face when accidentally switching caps-lock on. Following article displays how to achieve it in asp.net.

http://aspnet.4guysfromrolla.com/articles/051408-1.aspx

Cheers
Samitha