Friday 15 May 2015

JQuery with HTML/CSS

JQuery
  • JQuery is a JavaScript library or JavaScript Framework developed by using JavaScript.
  • JQuery is not replacement of JavaScript, but it will makes JavaScript programming MORE EASIER.
  • It is used to perform all client side programming.
  • It is a LightWeight JavaScript library.
  • It is an open source library which can be used in any website development.

       The speciality of Jquery is "Write Less, Do More".

HTML5/CSS3


Html5 /CSS3  plays an important role in ASP.NET MVC.

Designing is easy in ASP.NET as we have Server Side Controls, but in ASP.NET MVC designing is little bit pain because we don't have Server Side controls.

The Html5 /CSS3 and Bootstrap is responsible for the UI, but the functionality 
 depends on JQuery.
CSS
  • CSS stands for Cascading Style Sheets.
  • It is used to describe the LOOK and FORMAT of a HTML DOCUMENT.
Why CSS ?
  • Most of the HTML tags doesn't provide attribute for changing default behaviour like background color, text color, font etc.
  • In order to override/ change the default behaviour, we use CSS concept.




ASP.NET v/s ASP.NET MVC

Differences between ASP.NET and ASP.NET MVC

 First Question when you are attending Interview on ASP.NET MVC


ASP.NET ASP.NET MVC
It uses page controller design pattern Asp.Net MVC itself is a design pattern
It uses file based URLS http://Sitename/Default.aspx It uses Controller based URLS http://Sitename/Home/Index
It uses Server Side Controls It uses HTML controls and HTML Helper Controls
It uses Viewstate concept to maintain the state of the server controls No viewstate
It works based on event modelling system It doesn't support events (server side) concepts
It uses Master pages page concept to develop page templates Layout views are used for designing web pages
It supports WebUser controls to implement Re-usable content Partial views are used to prepare Re-usable content
In Asp.Net, UI logic is strongly dependent on business logic UI logic is loosly dependent on business logic
It is not an Open source It is an Open source framework
Asp.Net is suitable when we want to develop Rapid Application  Development (RAD) MVC is suitable when we want to develop the applications which is required more no. of UI changes.

INTRODUCTION TO ASP.NET MVC


MVC

1. MVC stands for Model View Controller.
2. MVC is a design pattern which are used to develop the applications.

Design Pattern

1. Design pattern is a pre-defined solution for the problems that occurs in software development.
2. These design pattern can be used in any application development based on the requirement.

Some of the important categories of Design Pattern

1. Architectural Design Pattern
2. Behavioural Design Pattern
3. Conceptual Design Pattern
4. Structural Design Pattern

MVC Design Pattern comes under Architectural Design Pattern.

WHY MVC?

1. MVC Design Pattern provides the solution for the applications that are using GUI programming.
2. In MVC, there is a separation of code. UI logic is separated from the business/database logic.
3. Due to this we can reduce the dependency or complexities of GUI logic on other parts of the           application.
4. Easy to perform modifications since application is divided into different modules.

Note: MVC Design Pattern is suitable if the application requires more GUI modifications frequently.

MODULES IN MVC


1. MODEL
  • It is responsible for database related logic.
  • Model will communicate with database and sends the result to controller.
2. VIEW
  • It is responsible for GUI related logic.
  • It will focus how the data will present to the end user.
3.CONTROLLER
  • Controller is responsible for complete execution flow of the application.
  • It will communicate with models and also with views

ASP.NET MVC

  • ASP.NET MVC is an open source framework.
  • Microsoft was introduced MVC Design Pattern with ASP.NET in 2007.
  • Using ASP.NET MVC, we can develop Web Applcations with MVC Design pattern.