Monday, 28 July 2014

What is MVC ?

Inter View Questions on MVC

what is MVC?

MVC stands for Modal View Controller.  MVC is a design pattern which using using for developing an application.

What is Design Pattern?

Design Pattern is a pre-Defined solution for a problem which is occurred in the application.

Note : MVC comes under architectural design pattern category. 

Thursday, 3 July 2014

Googe charts

 <script type="text/javascript" src="https://www.google.com/jsapi"></script>
    <script type="text/javascript">



     
        google.load('visualization', '1.0', { 'packages': ['corechart'] });      
        google.setOnLoadCallback(drawChart);
        function drawChart() {
         
            $.ajax({
                type: "POST",
                contentType: "application/json; charset=utf-8",
                url: "webservice.asmx/test",
                data: "{'test':'test1'}",
                dataType: "json",
                success: function (response) {
                    drawVisualization(response.d);
                },
                error: function (response) {
                    alert("Error accured while updating item Status.");
                }
            });

        }

        function drawVisualization(dataValues) {        
            var data = new google.visualization.DataTable();
            data.addColumn('string', 'CustomerName');
            data.addColumn('number', 'POHeaderID');
            for (var i = 0; i < dataValues.length; i++) {            
                data.addRow([dataValues[i].CustomerName, dataValues[i].POHeaderID]);
            }        
            var options = { 'title': 'PO List',
                'width': 400,
                'height': 300
            };

            // Instantiate and draw our chart, passing in some options.
            var chart = new google.visualization.PieChart(document.getElementById('chart_div'));
            chart.draw(data, options);
        }
    </script>

What is Dot Net Framework

1. What is dot net framework?

2. How compilation works in .net ?

3. What is IL Code?

4. Different parts of .net frame work ?

· What is dot net frame work?

Dot net frame work is a platform which contains some libraries, some utilities, some compilers L+U+G which we can use developing , building and deploying varies dot net applications, web applications, windows applications, WCF applications, WPF applications

· How compilation works in dot net?

Compilation works in dot net works in two stages

ü Normal dot net code(C#,VB.Net) converted into IL(Intermediate language) by using compilers.

C# converted into IL by using CSC(c# compiler)

VB.net converted into IL by using VBC (VB compiler)

(IL is the half compiled code and IL is same for all the languages)

C# code = IL Code = VB code

ü IL con be taken by CLR (Common Language Runtime) and passed to JIT(Just In Compiler)

JIT is the responsible for convert the IL code to machine code.

· What is IL?

IL is nothing but a half compiled code(MSIL Microsoft Intermediate language)

JIT will get the control over the IL Code by sing CLR.

This JIT converted the Compiled code (IL) to machine code which is can be understand by operating system(machine code).

· Different parts of .Net framework.

clip_image001[4]

CLR Responsibilities

§ Converted IL Code into machine Code

§ Garbage collection.

§ Thread management.

§ Security (Code Access Security CAS).

CLR Consists of CTS, CTS Consists of CLS(Common language specification)

clip_image002[4]CTS CLS

CLS is defines set of rules which is must followed by all the dot net compiled languages