Skip to main content

Posts

Showing posts from May, 2014

knockoutjs value binding

The value binding is basically used at the add/edit change event.  <div>         <label>Description</label>         <textarea id="txtDescription" onkeyup="return checkAbbreviationKey(event)" data-bind="value: Description, valueUpdate: 'afterkeydown'" > </textarea>  </div>

knockoutjs text binding

The text binding is basically used for display matters on end user screens. <div class="matter">     <h3>Matters List</h3>           <div data-bind="foreach: MattersInMyTimeEntries" >                <h5   data-bind="text: matter.ClientDisplayName" ></h5>                <h6   data-bind="text: matter.DisplayName" ></h6>           </div>  </div>

47 Best AngularJs Interview Questions and Answers

1. What is Angular Js ? The angularjs is a JavaScript [ MVW || MV* ]  framework and Its maintain by Google. The most of use to creating to  single-page applications (SPA) with the MVC pattern.  Its used for both client-side and server-side web application etc.   {{   The  MVW || MV*  stand for " Model-View-Whatever". We considering the " MVC" , " MVVM" , " MVP"  but angularjs is more closer to MVC pattern, I would guess " whatever works for you !" , " Model-View-Whatever". Some people are stand to MVW and some are MV*  :) }} The main features are given below.      1. Its support both type of binding one-way and two-way data bindings.      2. Its support MVC pattern.      3. Its support static template and angular template.      4. You can add custom directives.      5. Its support REST full services.      6. Its support form validations.      7. Its support both client and server communi

out keyword in c#

Before calling the method, variables may be initialize or not. Its depend on programmers. Initialization must be inside the methods. namespace ConsoleApplication1 {     class OutSwap     {         static void Main( string [] str)         {             SwapWithout3rd objSwap = new SwapWithout3rd ();             int a, b;             objSwap.swapMethod( out a, out b);             Console .WriteLine( "A : " + a + ", B: " + b);             Console .ReadLine();         }     }     /// <summary>     /// swap withod 3rd variable using out kye.     /// </summary>     public class SwapWithout3rd     {         public void swapMethod( out int a, out int b)         {             a = 10;             b = 20;             a = a + b;             b = a - b;             a = a - b;         }     } } //Out put  A:20 , B:10

ref keyword in c#

Before calling the method, variables much must be initialized. Initialization not must inside method. using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 {     class Program     {         static void Main( string [] args)         {             swapWithTrd objswap = new swapWithTrd ();             int a = 5;             int b = 6;             objswap.swapMethod( ref a, ref b);             Console .WriteLine( "A : " +a + ",  B :" +b);             Console .ReadLine();         }     }     /// <summary>     /// Swap  using 3rd variable by ref     /// </summary>     public class swapWithTrd     {         public void swapMethod( ref int a, ref int b)         {             a = 40;             b = 50;            int temp = a;            a = b;            b = temp;         }     } } /// Ou

What is Magic Table in SQL Server

The tables 'INSERTED', 'UPDATED' and 'DELETED' are called Magic Table of SQL Server. We can't see the table in SQL Server db. It's created automatically and manage by SQL Server. Magic table contain the recent Inserted, Updated and deleted data. SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author:           <Author,,Anil Singh> -- Create date: <05-09-2014,,> -- ============================================= CREATE TRIGGER MAGICTABLEDATA    ON [dbo] . [Users]    AFTER INSERT , DELETE , UPDATE AS BEGIN        -- SET NOCOUNT ON added to prevent extra result sets from        -- interfering with SELECT statements.        SET NOCOUNT ON ;        -- Insert statements for trigger here         SELECT  *  FORM INSERTED        SELECT  *  FORM DELETED END GO