Subscribe: ASP.NET, C#.Net, SQL Server, JQuery, WCF code
http://feeds.feedburner.com/AspnetTutorialOnlineForBegineers
Preview: ASP.NET, C#.Net, SQL Server, JQuery, WCF code

ASP.NET Examples



ASP.NET examples,C#.NET examples, JQuery Tutorials, javascript, CSS, HTML5, HTML and more.ASP.NET, C#.Net, SQL Server, JQuery, WCF code



Last Build Date: Fri, 11 Aug 2017 11:00:06 PDT

Copyright: Please don't copy content
 



How to design UML class diagram and generate c sharp code using visual studio

Sun, 21 May 2017 22:18:27 PDT

width="560" height="315" src="https://www.youtube.com/embed/52M02NWsv0k?rel=0&autoplay=1" frameborder="0" allowfullscreen>If you have any queries or suggestions, please feel free to ask in comments section.
(image)



AngularJS Tutorial 13: ng-repeat directive example with simple object

Thu, 20 Apr 2017 02:41:10 PDT

ng-repeat directive example with simple object

Program




   



   


       

               

  •                 {{value.name}} age is {{value.age}}
               

  •        

   




Output:

  • ranga age is 32
  • swapna age is 31
  • Sabarish age is 1
  • chinmayi age is 4

If you have any queries or suggestions, please feel free to ask in comments section.
(image)



AngularJS Tutorial 12:ng-repeat directive syntax with example

Tue, 18 Apr 2017 02:25:01 PDT

ng-repeat directive is useful for repeat the elements.

Syntax: 



  • Full Example:




       


       

            Cities in India
           

                 

    •                 {{value}}
                 

    •        

       





    Output:

    Cities in India
    • Bangalore
    • Hyderabad
    • Goa

    If you have any queries or suggestions, please feel free to ask in comments section.
  • (image)



    AngularJS Tutorial 11:ng-if directive syntax with example

    Fri, 14 Apr 2017 02:16:07 PDT


    ng-if is useful for displaying the HTML elements as per true or false

    Syntax with Example:



    Full example: 




       



        
       
       


       
       

            Visible if checkbox is checked.

       

        Visible always. 






    If you have any queries or suggestions, please feel free to ask in comments section.
    (image)



    AngularJS Tutorial 10:ng-model directive syntax with example

    Thu, 13 Apr 2017 02:06:12 PDT

    ng-model directive bind the html elements to angular app model.

    Syntax with example: 



    Full Code:




       
       
        
       



        
       

           
               
       

        




    Output:
    In the browser textbox u can see 'ranga'

    If you have any queries or suggestions, please feel free to ask in comments section.
    (image)



    AngularJS Tutorial 13: ng-repeat directive example with simple objects

    Wed, 12 Apr 2017 02:35:08 PDT

    Using this program we will be reading data from the object through AngularJS.

    Program:




       



       


           

                 

    •                 {{value.name}} age is {{value.age}}
                 

    •        

       




    Output:

    • ranga age is 32
    • swapna age is 31
    • Sabarish age is 1
    • chinmayi age is 4


    If you have any queries or suggestions, please feel free to ask in comments section.
    (image)



    AngularJS Tutorial 9:ng-init directive syntax with example

    Wed, 12 Apr 2017 01:53:05 PDT


    ng-init directive will be useful for initialize the application data.

    syntax: 



    Example: 



    Full Code: 




       
       
        
       



           
       

            {{blog}}
       






    output: 
    aspnettutorialonline.blogspot.com


    If you have any queries or suggestions, please feel free to ask in comments section.
    (image)



    AngularJS Tutorial 8:ng-app directive syntax with examples

    Tue, 11 Apr 2017 01:47:56 PDT

    ng-app directive is for initialize the angularJS application.

    syntax:

    or

    Example:




    with program: 




       
       
        
       

       

        {{2+5}}




    If you have any queries or suggestions, please feel free to ask in comments section.
    (image)



    AngularJS Tutorial 7:Controller Inheritance and nested controllers in AngularJS

    Fri, 31 Mar 2017 00:41:17 PDT

    Controller Inheritance or nested Controllers in AngularJS               
            Parent divison: {{name}}       
               First level : {{name}}           
                SecondLevel    {{name}}           
           
       
      OUTPUT: allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/qcVQLyIZNIk?rel=0&autoplay=1" width="420"> If you have any queries or suggestions, please feel free to ask in comments section.More Interview Questions http://aspnettutorialonline.blogspot.com/search/label/WCF%20Interview%20Questions http://aspnettutorialonline.blogspot.com/2012/05/jquery-interview-questions-or-faqs-or.html http://aspnettutorialonline.blogspot.in/search/label/SQL%20Queries http://aspnettutorialonline.blogspot.com/2012/06/aspnet-c-sql-server-ajax-interview.html [...]



    AngularJS Tutorial 6: How to read textbox data on button click using AngularJS

    Thu, 30 Mar 2017 23:52:05 PDT

    How to read textbox data on button click using AngularJSProgram:               
                   
            {{textBoxValue}}   
     Output: allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/m6mmGPpW4EY?rel=0&autoplay=1" width="420"> If you have any queries or suggestions, please feel free to ask in comments section.More Interview Questions http://aspnettutorialonline.blogspot.com/search/label/WCF%20Interview%20Questions http://aspnettutorialonline.blogspot.com/2012/05/jquery-interview-questions-or-faqs-or.html http://aspnettutorialonline.blogspot.in/search/label/SQL%20Queries http://aspnettutorialonline.blogspot.com/2012/06/aspnet-c-sql-server-ajax-interview.html [...]



    AngularJS Tutorial 5: How to handle button click events using AngularJS

    Thu, 30 Mar 2017 10:36:38 PDT

    Using this tutorial we are going to learn how to handle button click events in AngularJS.

    Please go through below code for your reference.




       
       
       



       

           
       



      

    Output:
    allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/fY5ElZcPaUg?rel=0&autoplay=1" width="420">


    If you have any queries or suggestions, please feel free to ask in comments section.
    (image)



    AngularJS Tutorial 4: Explain about AngularJS modules and Controllers

    Thu, 30 Mar 2017 09:53:43 PDT

    What is module and how to create a module---This is like a main method for the AngularJs applications----This is the container for all directives, filters, containers, Services and others.Example -  var myApplication = angular.module("MyModule", []);What is controller and how to create a controller?Controller is nothing but javascript class to build a model for the view.Example:         var myController = function ($scope) {            $scope.name = "Ranga";        }      How to register a controller with the module        myApplication.controller("myController",myController)How to use the module with controller ?   
           
            {{name}}   
    Full Example:                
           
            {{name}}   
      Output:  allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/HWI5NPoIxxA?rel=0&autoplay=1" width="420">If you have any queries or suggestions, please feel free to ask in comments section.More Interview Questions http://aspnettutorialonline.blogspot.com/search/label/WCF%20Interview%20Questions http://aspnettutorialonline.blogspot.com/2012/05/jquery-interview-questions-or-faqs-or.html http://aspnettutorialonline.blogspot.in/search/label/SQL%20Queries http://aspnettutorialonline.blogspot.com/2012/06/aspnet-c-sql-server-ajax-interview.html [...]



    AngularJS Tutorial 3: Explain expressions in AngularJs

    Thu, 30 Mar 2017 09:49:57 PDT

    Expressions: 

    AngularJS expressions are like javascript expression. Please find below example where we can do arithmetic operations, array operations and others.






       
       

       


       
        {{"Hello"+" World"}}

       
        Additional : 2+3 ={{2+3}}

        Substraction : 3-2={{3-2}}

        Multiplication : 3*2={{3*2}}


        Array operation using AngularJs::
        {{ ["ASP.NET","C#.NET","AngularJs"][1]}}


        Javscript data storage:
        {{ {name:"ranga",age:"32"}.name }}


      

    Output: 
    allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/7sN_L6ezjEk?rel=0&autoplay=1" width="420">

    If you have any queries or suggestions, please feel free to ask in comments section.
    (image)



    AngularJS Tutorial 2: Write Hello world program using AngularJs

    Thu, 30 Mar 2017 09:42:56 PDT

    This is second AngularJS Tutorial.

    Please find below code for your reference.




       
       

       


       
        {{"Hello"+" World"}}




    Output:
    allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/6R_DJbY80lc?rel=0&autoplay=1" width="420">

    If you have any queries or suggestions, please feel free to ask in comments section.
    (image)



    AngularJS Tutorial 1: What is AngularJs and uses of AngularJs

    Thu, 30 Mar 2017 09:36:35 PDT


    Angular JS : 

    This is javascript framework to develop web applications

    naming convention for angular js tags = a [ng] ular

    USES:
    Directivies, Filters, Services etc
    Two Way binding
    MVC pattern
    easy testing
    good UI

    Expressions:
    {{'Hello'+'World'}}

    Please watch below video Tutorial for more information. 

    allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/do86IlLgcIY?rel=0&autoplay=1" width="420">If you have any queries or suggestions, please feel free to ask in comments section.
    (image)



    Can we write try block without Catch Block in C#.net

    Wed, 29 Mar 2017 21:47:27 PDT

    In the previous example we have learnt how to handle exceptions at constructor level in C#.net. Now i am going to explain can we use try block with out catch block in CSharp.Net.Explanation: We can use try block with out catch block by declaring finally block which is syntactically correct in C#.net. This is one of the best c#.net Interview Questionusing System;namespace ConsoleApp1{    class Program    {        static void Main(string[] args)        {            try            {                int i = 0, j = 1, result;                Console.WriteLine("this is try block");            }            //catch(Exception ex)            //{              //  Console.WriteLine(ex.Message);                //Console.WriteLine("this is Catch block");            //}            finally            {                Console.WriteLine("this is finally block");                Console.Read();            }        }    }}Output: allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/n6i3gBJndA8?rel=0&autoplay=1" width="420"> If you have any queries or suggestions, please feel free to ask in comments section.More Interview Questions http://aspnettutorialonline.blogspot.com/search/label/WCF%20Interview%20Questions http://aspnettutorialonline.blogspot.com/2012/05/jquery-interview-questions-or-faqs-or.html http://aspnettutorialonline.blogspot.in/search/label/SQL%20Queries http://aspnettutorialonline.blogspot.com/2012/06/aspnet-c-sql-server-ajax-interview.html [...]



    How to handle exceptions at Class constructor level in C#.Net

    Wed, 29 Mar 2017 21:03:16 PDT

    We need to do check possible condition and throw the exception from constructor level. Please go through below example for your reference.This is one of the best c#.net interview question.using System;namespace ConsoleApp1{    class Program    {        static void Main(string[] args)        {            try            {                int a = 1, b = 0;                Paramater obj = new Paramater(a, b);                Console.Read();            }            catch(Exception ex)            {                Console.Write(ex.Message);                Console.Read();            }        }    }    class Paramater    {        int result;        public Paramater(int a, int b)        {            if (b == 0)                throw new DivideByZeroException("Class:Parameter, from constructor while b==0");            result = a / b;        }    }}Output: allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/58Y4yHtbJTg?rel=0&autoplay=1" width="420"> If you have any queries or suggestions, please feel free to ask in comments section.More Interview Questions http://aspnettutorialonline.blogspot.com/search/label/WCF%20Interview%20Questions http://aspnettutorialonline.blogspot.com/2012/05/jquery-interview-questions-or-faqs-or.html http://aspnettutorialonline.blogspot.in/search/label/SQL%20Queries http://aspnettutorialonline.blogspot.com/2012/06/aspnet-c-sql-server-ajax-interview.html [...]



    ASP.NET MVC Interview Questions and Answers for experienced and fresher

    Thu, 23 Mar 2017 06:16:59 PDT

    1. What is ASP.NET MVC?MVC is the architectural pattern to develop applications. HereM- Model - will be having business logicV-View - This is the front end of the applicationC- Controller - Communicates between view and model.Watch this video for more information.2. Why We need to use ASP.NET MVC over legacy ASP.NET?In legacy ASP.NET we are going through complete ASP.NET life cycle. But in ASP.NET MVC just we are hitting directly controller without any extra operations.Watch this video for more information. 3. What is Controller in MVC? Explain with an example?This is one of the layer in MVC and handles users interaction between model and view. Please watch controller example program with video tutorial. 4. What is Model in MVC? Explain with an example?This is one of the layer of the application and work on processing the data for the application. Please watch Model example program with video tutorial. 5. What is View in MVC? Explain with an example?This is one of the layer of the application and this will display data to the user. Please watch Model example program with video tutorial. 6. Briefly explain ASP.NET MVC life cycle?7. What are main advantages of MVC?a. Separation of concerns. b. Multiple view support. c. We can do unit testing in all phases. d. very fast compare to legacy ASP.NET application model. e. We can use all features of ASP.NET. Please watch this video for more information. 8. What are different folders in ASP.NET?a. Modelsb. Controllersc. Viewsd. App_startPlease watch this video for more information. 9. What is routing concept in MVC? explain with an example?Route is noting but URL pattern i.e. mapped to the handler. Default route is defined in the App_Start -> Routeconfig.cs file. We can customize URL route as per our requirement. Example: using System.Web.Mvc;using System.Web.Routing;namespace WebApplication1{    public class RouteConfig    {        public static void RegisterRoutes(RouteCollection routes)        {            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");            routes.MapRoute(                name: "Default",                url: "{controller}/{action}/{id}",                defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }            );        }    }}10. What are the features of ASP.NET MVC 1.0?HTML helpersUNIT testing supportAjax helpersRouting concept11. What are the features of ASP.NET MVC 2.0?Data annotation attributesStrongly types HTML helpers for better viewsscaffoldering and different usage templatesoverride HTML Verbs(GET, PUT, DELETE AND POST)Async ContorllersTemplated helpersImproved server and client side validationsAREAS12. What are the features of ASP.NET MVC 3.0?Templates for HTML5 and CSS 3Improved Model validationRazor View EngineController ImprovementsUnobtrusive Java script approachPartial page output cachingSupport for Multiple view enginesImproved dependence injectionImproved Data annotationsSession less controllerSupport code first approach through entity frameworkViewBag classActions filters with global functionalityprovided more intellisense feature for view operations.13. What are the features of ASP.NET MVC 4.0?Adaptive renderingEmpty project templatesupport for adding controllerBund[...]



    How to implement Master Pages in ASP.NET MVC

    Tue, 14 Mar 2017 21:27:40 PDT

    We can use 'Layouts' as master pages in ASP.NET MVC.

    We can implement layouts using different ways in ASP.NET MVC. I am explaining two ways here.

    1. you can pass layout through action result return statements.

     return View("Home", "_commonLayout", model);

    2. Define Layout on top of each view.

    @{
     Layout = "~/Views/Home/_HomeLayout.cshtml";
    }


    (image)



    Do we need to Encode HTML code ASP.MVC

    Tue, 07 Mar 2017 20:55:13 PST

    Basic Reason: 

    Someone can easily inject some harm code into our website. So we need to encode user data before storing into database. Example some comments from users. 

    Solution: 
    In normal ASP.NET we need to encode user data explicitly but in ASP.NET MVC Razor all expressions are automatically HTML encoded. So no need to explicit handling. 

    If we want to display HTML code on webpage, we need to use @HTML.Raw(item.comments) in ASP.NET MVC.


    (image)



    Converting Upper case to lower case using csharp source code

    Mon, 13 Feb 2017 04:01:08 PST

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;

    namespace ConsoleApplication3
    {
    class Program
    {
    public static void Main()
    {

    string str;
    Console.WriteLine("Enter string in Upper case: ");
    str = Console.ReadLine();

    Console.WriteLine("String in lowercase {0}", str.ToLower());
    Console.ReadLine();

    }
    }
    }

    If you have any queries or suggestions, please feel free to ask in comments section.
    (image)



    Swapping of numbers using Csharp source code

    Fri, 10 Feb 2017 03:57:00 PST

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;

    namespace ConsoleApplication3
    {
    class Program
    {
    static void Main(string[] args)
    {

    int num3, num4, temp1;
    Console.Write("\nEnterFirstNumber : ");
    num3 = int.Parse(Console.ReadLine());

    Console.Write("\nEnterSecondNumber : ");
    num4 = int.Parse(Console.ReadLine());

    temp1 = num3;
    num3 = num4;
    num4 = temp1;

    Console.Write("\nAfter Swapping");
    Console.Write("\nFirst Number : " + num3);
    Console.Write("\nSecond Number : " + num4);
    Console.Read();

    }
    }
    }

    If you have any queries or suggestions, please feel free to ask in comments section.
    (image)



    How to find out even or odd number using csharp

    Mon, 06 Feb 2017 03:22:36 PST



    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;

    namespace ConsoleApplication2
    {
    class Program
    {
    static void Main(string[] args)
    {
    int i;
    Console.Write("Enter a number : ");
    i = int.Parse(Console.ReadLine());
    if (i % 2 ==0)
    {
    Console.Write("Entered number is an even number");
    Console.Read();
    }
    else
    {

    Console.Write("Entered number is an odd number");
    Console.Read();
    }
    }
    }
    }



    If you have any queries or suggestions, please feel free to ask in comments section.
    (image)



    JQuery Tutorial 41 - Form submit event handler with and example

    Sun, 24 Apr 2016 05:16:00 PDT

    Code: 




    JQueryexamplecode.blogspot.com




    Name:

    Email:








    Output:
    (object)

    If you have any queries or suggestions, please feel free to ask in comments section.
    (image)



    JQuery Tutorial 40 - How to select dropdownlist value using change event handler with an example

    Fri, 22 Apr 2016 05:14:00 PDT

    Code: 


    JQueryexamplecode.blogspot.com








    Output:
    (object) If you have any queries or suggestions, please feel free to ask in comments section.
    (image)