Wednesday, 19 April 2017

What is JQuery

jQuery is a lightweight JavaScript library that simplifies programming with JavaScript. 

According to
jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. With a combination of versatility and extensibility, jQuery has changed the way that millions of people write JavaScript.

Advantages of using jQuery over raw JavaScript
1. jQuery is cross-browser
2. JQuery is a lot more easy to use than raw JavaScript
3. JQuery is extensible
4. JQuery simplifies and has rich AJAX support
5. JQuery has large development community and many plugins.
6. Excellent documentation

What is the difference between jQuery 1.x and 2.x
         jQuery 1.x supports IE6/7/8, if we don't have to support IE6/7/8 then we can use jQuery 2.x.

         JQuery 2.x is smaller in size than jQuery 1.x.

Points to remember :
1. ready() function ensures that the DOM is fully loaded.
2. $ is a shortcut for jQuery.
3. All three of the following syntaxes are equivalent:
$( document ).ready( handler )
$().ready( handler ) (this is not recommended)

Friday, 19 February 2016

Interview Questions

§  A truly Empty Project Template.
§  Based on jQuery Mobile, new Mobile Project Template introduced.
§  Task Support for Asynchronous Controllers.
§  Support for OAuth and OpenID logins using DotNetOpenAuth library.
§  Support for adding controller to other project folders also:
§  In Mvc 3, controller class can be added only in the "Controllers" folder, adding controller class to other folder is not allowed but in Mvc 4, we can add controller class to other folder.
§  Support for Windows Azure SDK 1.6 and new releases.
§  Controlling Bundling and Minification through web.config.
§   Adaptive rendering and other look-n-feel improvements to Default Project Templates.

Friday, 12 February 2016


1. How many times each character is repeating in a given string

            string str = "My Name is Bill"; 

            //Since String is the array of characters

            foreach (char x in str.Distinct())
                int counter = 0; 

                if (!char.IsWhiteSpace(x))

                    foreach (char y in str)
                        if (x == y)
                            counter = counter + 1;
                    Console.Write(string.Format("{0} is repeated {1} times", x, counter));


Using LINQ

      string str = "My Name is Bill";

      var x = from u in str.ToLower()
      where char.IsWhiteSpace(u) == false
      group u by u into g
      select new { Item = g.Key, count = g.Count() };

      foreach (var y in x)
          Console.WriteLine("{0} is repeated {1} times", y.Item, y.count);

2. List of N Prime Numbers

            bool isPrime = true;
            for (int i = 2; i <= 100; i++)
                for (int j = 2; j <= 100; j++)
                    if (i != j && i % j == 0)
                        isPrime = false;
                if (isPrime)
                    Response.Write(i + "is Prime" + "</br>");



Tuesday, 2 February 2016

Telephonic Interview


What is Lazy loading
Early Binding and Late Binding
what is TempData
Difference between View Bag and View Data
what is partial view
what is routing in Mvc
what is MVC entity Framework
what is Html Helper
what is jquery
what is action filter
What is validation and how we can achieve it in Mvc
State Management Techniques in
Can we use multiple Models in MVC
How to restrict a particular user in Mvc
What is a exception
Can we have multiple catch in try
what is shared view

Attended by: Quazi Sharique Ali

Date: 02/02/2016   Time: 3:00 PM

Location: Hyderabad

Kantar to access data from database without using to load xml data into db?
5.union and union all
6.why linqtosql
7.can we create index on view?
8.connection pooling?
9.fns and sp features in 2012?
11.tesing ur application
12.types of testing.
13.having and group by to optimize sp.`

Attended by: Ramesh P

Date: 16/02/2016   Time: 3:00 PM

Location: Hyderabad


Friday, 29 January 2016

Interview Preparation

Tell me about yourself:
1. You (My name is xxxx)
2. I am having x years of experience
3. I have worked on the technologies.....(list latest first)

Roles and responsibilities
1. Get requirements from (Architect or TL)
2. Create HLD
3. Review the document with Lead
4. create WBS
5. Code Implementation
6. Unit Testing

About your Project:
1. Business Rule
2. Technology Used.......(Like MVC5, C#, SQL, Web API, Log4Net,Web API 2.0 etc.)

Project Architecture
1. Application is created using DDD (Domain Driven Design)
2. Used Repository Patterns (ex: FT.Data)
3. Used Dependency Injection using Constructor level. (3 types: Constructor Level, Property Level and Method Level)
4. IOC (Inversion of Controls) using Ninjet


Wednesday, 9 December 2015

How to disable copy cut paste in JQuery for input fields

How to disable copy cut paste in JQuery for input fields

    $('selector').bind("cut copy paste",function(e) {
        alert('cut,copy & paste options are not allowed !!');

Handle copy cut paste events in JQuery

$(document).ready(function() {
    $('selector').on('copy', function(event) {
        console.log("Handle copy event")
    $('selector').on('cut', function(event) {
        console.log("Handle cut event")
    $('selector').on('paste', function(event) {
        console.log("Handle paste event")


Thursday, 3 December 2015

create authentication tables in existing database

How to migrate or move the standard MVC authentication tables into your existing database in your web application.
When you create a MVC web application in VS 2013, VS embed a sql server database in your project, and this project is being used as a source of membership. Since you will not use this database as an embedded file and you want to have it as part of your existing database in SQL Server instance. The file is created under App_Data folder. To see the .mdf file click on Show all files in the solution explorer.
You can see the contents of this database and all tables in the server explorer window.
How to create those tables in SQL server ?
First, you can delete the .mdf file in App_Data folder. Since we don’t need any of these tables.Then, we need to update the default connection string in the web.config to point to our database.
    <add name=”DefaultConnection” connectionString=”Data Source=SERVER\INSTANCENAME;Initial Catalog=DBNAME;Integrated Security=True” providerName=”System.Data.SqlClient” />
Third, Open Nuget Package Manager and write the following commands:
Add-Migration Init
Check out your database, all ASP.NET membership tables with Prefix Asp have been create and then you can test it out by running your application and execute membership actions such as Signing up or Signing in to your application.
Created tables after running above commands: