Archive for May, 2013

Here are few MCQs on Database along with Answers and Explanation.


So this is the issue that most of the developers might be facing on day to day basis while development in javascript.
The issue is even after you made changes in your javascript file but still the old Javascript file is refered, which bugs your mind big time.
A simple solution to this issue is to clear the browser cache and run the application again, but this again is frustrating when your are under pressure to meet deadlines.

So I bring to you a good and simple solution to the issue.
Note: As I’m a .Net developer and uses Visual Studio 2010 I have tested this in Visual Studio 4.0 Environment with Internet Explorer and Google Chrome as browsers.

We generally refer our javascript file as below :

<script language=”javascript” src=”/scripts/myJavaScript.js” type=”text/javascript”></script>

I changed this reference to somewhat like I have mentioned here :

<script src=”@Url.Content(“~/Scripts/myJavaScript.js?” + DateTime.Now.ToString(“ddMMHHmmss”))” type=”text/javascript”></script>

And this works !!!!

NOTE: I implemented this and it worked for MVC3 Razor Engine application.

I have been saved from lot of frustration while development in script files. Hope this will save developers from some frustration.

JavaScript Keycodes

Posted: May 21, 2013 by Sagar Wasule in JavaScript, Programming Concepts
Tags: ,

Javascript is often used on the browser client side to perform simple tasks that would otherwise require a full postback to the server. Many of those simple tasks involve processing text or characters entered into a form element on a web page, and it is often necessary to know the javascript keycode associated with a character.


The below article was published on May 21, 2013. You can find my new post for Editable Grid using AngularJS – ngGrid Plugin at :…in-angularjs-2/
Let me know if you have any doubts or queries.

Old post on custom control created to work like OnFocus Editable grid is below :
So this is what was bugging my mind from last week or so , I was working on AngularJs in which I had to prepare an on focus grid. I used ngGrid plugin for the same. Actually it would had been too simple have ngGrid(AngularJs) team not remove the functionality on ‘enableCellFocusedEdit’. I refered to the example mentioned on their website . On this website they have mentioned an example ‘Edit On Focus Cell Selection Example’. I tried out various sources to gather whatever information to implement this functionality but I failed. I went across the issues which I found when I googled it ‘; but seems its not resolved till now.

Note: This is not exactly a grid provided by AngularJS team but an customised control created by me.





So here is a post which I came across while I was doing development in MVC 3 Razor Engine. In this article you will find the simplest way to create your first ASP.NET MVC application. This is a tutorial for absolute beginners to ASP.NET MVC. The only prerequisite for following this tutorial is that you know how to use Visual Studio, and understand HTML and C# syntax. Also, I will show you briefly how you can use some jQuery plug-ins so it would be helpful if you know some jQuery syntax. If you are not familiar with jQuery, it is not a problem, you can just skip those parts because they are optional enhancements.