Tuesday, June 28, 2011

Generic Way to Bind Enum With Different ASP.NET List Controls « Abhijit's World of .NET

In this post I am going to explain how we can bind a Enum with ASP.NET List Controls. These comprise of four different types of control, CheckBoxList, DropDownList, ListBox and RadioButtonList. This is one of the common requirements during development to bind a Enum with List Control and challenge is when we need to bind the both text and value.
Let’s consider we have the blow Enum. Now I am going to bind it with all the above mentioned type List Controls.

Original post Here

Saturday, May 7, 2011

Front End Development Guidelines

Front End Development Guidelines by Tait Brown


What's Up, DOCTYPE?

The absence of a DOCTYPE is a crime punishable by death. You may have relied on the following DOCTYPE in the past, but it's important to know that this is now being superceded by a leaner and meaner snippet.
Ideally, the HTML5 DOCTYPE should be used. It's supported in all modern browsers, and throws IE6 and IE7 into standards mode. Source.

Friday, April 8, 2011

Using SQL Server DMVs to Identify Missing Indexes

ProblemIn a previous tip, Deeper insight into unused indexes for SQL Server, we discussed how to identify indexes that have been created but are not being used or used rarely.  Now that I know which indexes I can drop, what is the process to identify which indexes I need to create.  I can run the Database Tuning Advisor or examine the query plans, but is there any easier way to determine which indexes may be needed?
Solution
As with a lot of the new features we have seen with SQL Server 2005 and now with SQL Server 2008, Microsoft introduced a few more dynamic management views to also assist with identifying possible index candidates based on query history.

Friday, March 25, 2011

30 Pro jQuery Tips, Tricks and Strategies | Pro Blog Design


These tips and tricks all have one thing in common- they are all smashingly useful. With this stuff in your back pocket, you’ll be ready to go change the world, and even better, write jQuery like you know what you’re doing. It’s gonna be fun.
We’ll start with some basic tricks, and move to some more advanced stuff like actually extending jQuery’s methods and filters. Of course, you should be familiar with the basics of jQuery first. If you haven’t used jQuery before, I highly recommend browsing the documentation and watching jQuery for Absolute Beginners Video Series. Otherwise, you’re ready to dig in!
30 Pro jQuery Tips, Tricks and Strategies | Pro Blog Design

Thursday, March 17, 2011

jQuery DataLink Demos

Michael Rog put together really good demos for jQuery Data Linking

jQuery DataLink demos

jQuery Data Link Api Here

Data Linking project on GitHub with Demos Here

Wednesday, March 16, 2011

Vimium - the hacker's browser

Vimium is a Google Chrome extension which provides keyboard shortcuts for navigation and control in the spirit of the Vim editor. Watch this video to get a feel for how it works:
Vimium - the hacker's browser


Features

  • Helps you navigate the web without touching the mouse.
  • Uses a clever highlighting method to navigate using links.
  • Saves your zoom settings on a site-by-site basis.
  • Customizable keyboard shortcuts
  • Has an in-page help dialog to remind you of your personalized shortcuts.

Saturday, March 12, 2011

Visual Studio 2010 Community Wallpaper

This is a non-Microsoft site, filled with Community Created Visual Studio 2010 Wallpapers! 
http://vs2010wallpapers.com/

Creating Shortened URLs

This article shows how to use Google's URL Shortener API to create shortened URLs.
Creating Shortened URLs

Thursday, March 10, 2011

How to Fix a Failing Windows 7 Service Pack 1 Install | Microsoft Windows 7 | Tech-Recipes

How to Fix a Failing Windows 7 Service Pack 1 Install | Microsoft Windows 7 | Tech-Recipes
Sometimes Windows patches or service packs simply will not install successfully. Following the definition of insanity and going back to Microsoft Update to try again and again does not usually fix the problem. Here are 3 things you can do to get that update installed.


I recommend completing all of the following, in order, before trying to re-install the update:
1. Check the system drive for filesystem errors:
-Open an Administrative command prompt (hit Windows key, type cmd, hit Ctrl + Shift + Enter)
-Type: chkdsk c: /f
-Hit “y” when prompted
-Reboot and wait
2. Run the System File Checker:
-Open an Administrative command prompt
-Type: sfc /scannow
-Wait for completion
-Reboot
3. Download and run the Windows Update Readiness Tool:
-Read and then follow the appropriate download link here
-Run the downloaded Update Readiness Tool
-Wait patiently for it to complete, this may take some time with little indication of progress until the end
-See the logs after it finishes: %systemroot%\Logs\CBS\CheckSUR.log and CheckSUR.persist.log

A Visual Studio 2010 Extension which provides JavaScript code analysis using JSLint.

JSLint for Visual Studio 2010
Features

  • Simple .vsix double-click installation. Also available on the Visual Studio Gallery website, and downloadable directly from within Visual Studio using Tools->Extension Manager.
  • Configure from the Tools menu. Screenshot
  • Import/Export Options.
  • Analyze all JavaScript files when building the project or solution (also supports analyzing HTML files containing JavaScript).
  • Analyze selected JavaScript files from the Solution Explorer. Screenshot
  • Analyze a selected JavaScript snippet or the complete file while in the Code Editor window. Screenshot
  • Output as Errors, Warnings, Messages or Tasks. Screenshot
  • Skip validation of certain script files and folders when building (e.g. non-user code). Screenshot
  • Skip validation of a file section. Screenshot
  • Predefine JSLint global variables, per file or globally.
  • CSS validation.
  • New: Detection of constants (optional)

Friday, February 11, 2011

jQuery Snippets for Visual Studio 2010

Found it on John Sheehan blog.
I love Visual Studio code snippets. I’ve always wished that Visual Studio had them for HTML and JavaScript so I was thrilled to see that feature added in VS2010. I also love jQuery. jQuery is shipping with VS2010, but that’s about the extent of the official support for it. I thought there needed to be code snippets for jQuery and couldn’t find any, so I created 131 of them and started an open source project. You can find links to the project/downloads/docs below.
If you have any suggestions, issues, etc. Please let me know. You can follow me on Twitter for updates on the project. Thanks to Dave Ward, Jonathan Carter, and Rick Schott for testing them out and providing feedback.

Original Post Here

BIG Thanx to John Sheehan.

Tuesday, January 4, 2011

Building Large-Scale jQuery Applications

Today we’re going to look at the end-to-end tools and options you have for building large-scale enterprise jQuery applications. Although jQuery is an excellent JavaScript library and provides a well-designed set of tools for development, it’s focus on staying compact and making the DOM easy to use has meant that it doesn’t provide a significant infrastructure for building large-scale apps.

jQuery does however normalize things across browsers and serves as a great way of doing DOM manipulation. Using it to it’s strengths, you can select some excellent tools to use along-side it as a toolkit for your larger-scale app development.


Some developers have argued in the past that building RIAs using Dojo, MooTools or YUI may be more suitable for large-scale JavaScript applications than simply opting for jQuery, however, I believe you can implement a solution using it that is equally as good without too much extra effort.

In this post we’ll be looking at ways you can put together a toolkit for large-scale jQuery application development by identifying the options you have available at the moment for dependency management, MVC with jQuery, templating, testing, minification and more.

Original post here