Signup as a Tutor

As a tutor you can connect with more than a million students and grow your network.

.NET MVC

.Net MVC

Trending Questions and Lessons

Follow 17,060 Followers

Ask a Question

Feed

All

All

Lessons

Discussion

Lesson Posted on 23/11/2017 .Net/C# .NET .Net/.Net MVC .Net/.Net WCF +5 .Net/.Net Web Services IT Courses/Angular.JS IT Courses/HTML IT Courses/CSS IT Courses/jQuery less

Pro Developer Program Syllabus

DeCode Classes

DeCode Classes is based at Pune, India. DeCode is an outcome of joint and co-operative venture of...

What you will learn in Pro-Developer Program: i. Introduction to Web Technologies. ii. Introduction to .Net - Features of .Net, CTS, CLS, CLR and MSIL. iii. C# & .Net Basics - Data Types, Type Conversions and Methods in C#. iv. Branching & Flow Control - Looping, Conditional &... read more

What you will learn in Pro-Developer Program:

i. Introduction to Web Technologies.
 
ii. Introduction to .Net - Features of .Net, CTS, CLS, CLR and MSIL.
 
iii. C# & .Net Basics - Data Types, Type Conversions and Methods in C#.
 
iv. Branching & Flow Control - Looping, Conditional & Unconditional Branching, Repeating Code Blocks.
 
v. Object Oriented Programming - OOPs Concepts, Abstract Classes & Methods, Name Spaces.
 
vi. Exception Handling – Error Handling, System Defined Exceptions, Try, Catch & Finally.
 
vii. Delegates and Events, Generics.
 
viii. Asp.Net Introduction.
 
ix. Client Side & Server Side (ASP) Controls, HTML Server & Web Server Controls.
 
x. Validating User Input.
 
xi. .Net WebForms.
 
xii. State Management: Session States & Tracing, Page Submission & Cookies.
 
xiii. ADO.Net and Bound Controls in Asp.Net: Data List, Retrieve Data, SQL data Source.
 
xiv. ADO.Net and Bound Controls in Asp.Net: Form view, Details View and Grid View.
 
xv. Data Connections with Various Databases.

xvi. Database Creation & Linking with UI.

xvii. Data Binding: Data Source Control, SqlDataSource Control.

xviii. Data Binding: ObjectDataSource Control, XmlDataSource Control.

xix. .Net Error Handling & Debug: Page Level & Application Level Handling.

xx. Security in .Net: Authentication & Authorization, Authorizing Users and roles.

xxi. Security in .Net: Windows, Forms, Password Authentication.

xxii. Site Navigation.

xxiii. Ajax Introduction: Explaining Controls in Ajax Tool Kit.

xxiv. Web Parts: Zone Types, Content & Catalog web part and Personalization Features using web parts.

xxv. .Net Additional Concepts: Web Services, Working with Master Pages.

xxvi. GUI Application Development: Creating Menus, Toolbars, Tree & List View.

xxvii. GUI Application Development: Programming with Advanced Controls.

xxviii. Database Programming (ADO.Net): A Review of Classic ASP.

xxix. Introduction to AngularJS:

1. AngularJS Expressions: Numbers, Strings, Objects, Arrays, Expressions using {{ }} and ng-bind.

2. Modules: Creating a module, adding a controller & directive, myApp.js, myCtrl.js, Loading library.

3. Directives: Data Binding, ng-init, ng-repeat, ng-app & ng-model directives, custom directives.

4. Model: 2 way binding, Validating User Input, Status, ng-empty, ng-touched, ng-valid, ng-pending.

5. Data Binding: Synchronization between model and view.

6. AngularJS Controllers: ng-controller, Controller Methods, External Files.

7. Scope: $scope, understanding the scope, $rootScope.

8. Filters: Adding filters to directives, Currency filter, Array filter, Custom filters.

9. Services: Built-in & Own service, $http, $timeout, $interval, Custom service.

10. AngularJs $http: Methods, get(), post(), Properties, .config, .data, JSON format.

11. Tables: Working with Tables, $index, $even & $odd.

12. Select: Creating dropdown lists, ng-options and ng-repeat, Objects.

13. AngularJS SQL: Fetching Data, Cross site HTTP Requests, Server Code.

14. DOM: ng-disabled directive, ng-show directive, nd-hide directive.

15. Events: Working with events, Mouse events, ng-click, Toggle, $event object.

16. Forms: Working with Forms, Checkbox, Radiobuttons, Select, formCtrl, reset().

17. Form Validation: Client side form validation, Form state & Input state, Custom validations.

18. AngularJS API: Comparing objects, Iterating objects, Converting data.

19. Applying CSS styles: Inilne, Embedded and External Styles, Classes.

20. Bootstrap: Bootstrap Overview, Features, Using bootstrap, Grid, Navigation, Layout.

21. AngularJS: Routing, ngRoute, $routeProvider, Controller & Template.

read less
Comments
Dislike Bookmark

Lesson Posted on 04/07/2017 .Net/.Net MVC

ASP.NET Web API 2 action method return types

Tutorial Plus

I have been teaching for 15 years, Started as full time trainer to part time trainer now. I have taught...

Here, in this article we will learn ASP.NET Web API 2 action method return types. A Web API 2 action method return types can be any of the following : Void HttpResponseMessage IHttpActionResult Other type or Complex type Void When an ASP.NET Web API return type is void, it will return... read more

Here, in this article we will learn ASP.NET Web API 2 action method return types.

A Web API 2 action method return types can be any of the following :

  • Void
  • HttpResponseMessage
  • IHttpActionResult
  • Other type or Complex type




A Web API 2 action method return types can be any of the following

Void

When an ASP.NET Web API return type is void, it will return an empty HTTP response.

In the following example a web API with void return:

Example

public class SampleController : ApiController
{
  public void Post()
   {
            
   }
}

Note: We are using fiddler to call Web API, it is a free web debugging proxy which logs all HTTP(s) traffic between your computer and the Internet



Result

Calling sample web API in fiddler
Web API 2 action method void return 


It is returning status code 204 No Content (an empty HTTP response)
Web API 2 action method void return status code 204 No Content (an empty HTTP response) 





 

HttpResponseMessage

  • When Web API return type is HttpResponseMessage, Web API converts the return value directly into an HTTP response message.
  • We can set the status code, content as per our requirement.

 

In the following example a web API with HttpResponseMessage return:

Example

public HttpResponseMessage Get()
{
    HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, "value1");            
    return response;
}


Result

Calling sample Web API with HTTP GET request
Web API 2 action method HttpResponseMessage return 


In Response, It is returning status code 200 OK and Content
Web API 2 action method void return status code 204 No Content (an empty HTTP response) 



Note:Web API serialized model into the response body based on request header formatter



In the following example a web API return HttpResponseMessage with list of Countries in response body:

Example

public HttpResponseMessage Get()
{
   // list of Countries
   List Countries = new List();
    Country country = new Country();
    country.ID = 1;
    country.CountryName = "USA";
    country.Capital = "Washington";
    Countries.Add(country);
        
    //Countries to the response body.             
    HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, Countries);            
    return response;
}


Result

In Response, It is returning status code 200 OK and Content
Web API 2 action method HttpResponseMessage return 






IHttpActionResult

IHttpActionResult is introduced in Web API 2, IHttpActionResult interface acts like a factory for HttpResponseMessage.

There are some advantages of using the IHttpActionResult over HttpResponseMessage

  • The code is cleaner and easier to read
  • Unit testing for controller action methods become easy
  • It comes with custom built in responses
    • Ok
    • NotFound
    • Exception
    • Unauthorized
    • BadRequest
    • Conflict
    • Redirect

In the following example a web API return IHttpActionResult with list of Countries in response body:

Example

public IHttpActionResult Get(int id)
{
   // list of Countries
   List Countries = new List();
    Country country = new Country();
    country.ID = 1;
    country.CountryName = "USA";
    country.Capital = "Washington";
    Countries.Add(country);
    
    //finding country based on provided id
    var result = Countries.FirstOrDefault(x=> x.ID ==id);
    if (result == null)
    {
        //create a 404 (Not Found) response
        return NotFound();                
    }
    else
    {
        //creates a 200 (OK) response that contains the country
        return Ok(result);
    }
}





Result

Calling sample web API with HTTP GET request and id
Web API 2 action method HttpResponseMessage return 


In Response, It is returning status code 200 OK and Content
Web API 2 action method HttpResponseMessage return 


Calling sample web API with HTTP GET request and id(which is not exist)
Web API 2 action method HttpResponseMessage return 


In Response, It is returning status code 404 Not Found
Web API 2 action method HttpResponseMessage return 






 

Other type or Complex type

  • A Web API can return other or custom complex type
  • Web API serialize value and return it into the response body
  • The response status code 200 OK
  • But in this approach we cannot directly return an error code, still we can throw an HttpResponseException for error codes

In the following example a web API with Complex return type:

Example

public class CountryController : ApiController
{
    public IEnumerable Get()
    {
        List Countries = new List();
        Country country = new Country();
        country.ID = 1;
        country.CountryName = "USA";
        country.Capital = "Washington";
        Countries.Add(country);
        return Countries;
    }
}

Result

Calling Country web API with HTTP GET request
Web API 2 action method Complex return type 


In Response, It is returning status code 200 OK and Content
Web API 2 action method void return status code 204 No Content (an empty HTTP response) 
read less
Comments
Dislike Bookmark

Answered on 27/06/2017 .Net/.Net MVC

Tech Altius

Hi Ashish, For MVC Project information please come at our center so that we can understand your whole requirement.
Answers 14 Comments
Dislike Bookmark

Looking for .NET MVC

Find best .NET MVC in your locality on UrbanPro.

FIND NOW

Lesson Posted on 19/01/2017 .Net/.Net MVC IT Courses/jQuery

ValidateAntiForgeryToken used in ajax request in MVC

Suraj Ghosi

My skills asp.net , asp.net mvc , mvc+web api , javascript , jquery, html5 ,css3 , bootstrap, sql server...

Today we learn how to use antiforgery token validation Key in ajax reqeust (MVC) first we create a Action with attributes antiforgery key.. Now we add @Html.AntiForgeryToken() in view and then create ajax call for above action Below is the ajax request. After ajax request now we can verify... read more

Today we learn how to use antiforgery token validation Key in ajax reqeust (MVC)

first we create a Action with attributes antiforgery key.. 

Now we add @Html.AntiForgeryToken() in view and then  create ajax call for above action

Below is the ajax request.

After ajax request now we can verify request  with AntiForgeryToken .

 

I hope this lession will help you increase your Knowledge. if you like this lession the vote me.

Let us know if you have any query and concern.

 

read less
Comments
Dislike Bookmark

Lesson Posted on 27/12/2016 .Net/.Net MVC

Asp.net MVC Application LifeCycle

Kiran Shelke

Having 5 years of working experience in Microsoft technologies. Having Expertise in Asp.net MVC, .Net...

Any web application has two main execution steps first understanding the request and depending on the type of the request sending out appropriate response. MVC life cycle also follow same principle. MVC life cycle divided into two section. 1) Creating the request object 2) Creating response object Creating... read more

Any web application has two main execution steps first understanding the request and depending on the type of the request sending out appropriate response. MVC life cycle also follow same principle. 

MVC life cycle divided into two section. 1) Creating the request object 2) Creating response object

Creating the request object: -The request object creation has four major steps.

Step 1 Fill route: - MVC requests are mapped to route tables which in turn specify which controller and action to be invoked. So if the request is the first request the first thing is to fill the route table with routes collection. This filling of route table happens in the global.asax file.

Step 2 Fetch route: - Depending on the URL sent “UrlRoutingModule” searches the route table to create “RouteData” object which has the details of which controller and action to invoke.

Step 3 Request context created: - The “RouteData” object is used to create the “RequestContext” object.

Step 4 Controller instance created: - This request object is sent to “MvcHandler” instance to create the controller class instance. Once the controller class object is created it calls the “Execute” method of the controller class.

Creating Response object: - This phase has two steps executing the action and finally sending the response as a result to the view.

read less
Comments
Dislike Bookmark

Lesson Posted on 22/11/2016 .Net/.Net MVC

Benefits of Angular JS over traditional JavaScript and jquery

Suprio D.

I can teach each and every topics very easily and make it stronger for the students.

1. Easy designing web pages 2. Code reusability 3. Client validations more optimized and faster . 4. MVC architecture finds suitable interface to accept server responses Back in more customized manner .
Comments
Dislike Bookmark

Looking for .NET MVC

Find best .NET MVC in your locality on UrbanPro.

FIND NOW

Lesson Posted on 20/11/2016 .Net/.Net MVC

Benefits of AsP.net webapi over traditional asp.net 2 and 3.5

Suprio D.

I can teach each and every topics very easily and make it stronger for the students.

Tradional asp.net had slower server side response feedback to the server with the MVC concept on webapi there were faster responses from the server side for client requests. Optimization of code was main purpose and object oriented analysis gained further more predominance. Easy documentation and accessibilities.... read more

Tradional asp.net had slower server side response feedback to the server with the MVC concept on webapi there were faster responses from the server side for client requests.

Optimization of code was main purpose and object oriented analysis gained further more predominance.

Easy documentation and accessibilities. And customizations.

 

read less
Comments
Dislike Bookmark

Lesson Posted on 18/10/2016 .Net/.Net MVC .Net .Net/ASP.NET

Service-Level Agreement (SLA) Definition

Mohammad

A service-level agreement (SLA) is a contract between a service provider and its internal or external customers that documents what services the provider will furnish. SLAs originated with network service providers, but are now widely used by telecommunicationservice providers and cloud computing service... read more

A service-level agreement (SLA) is a contract between a service provider and its internal or external customers that documents what services the provider will furnish.

SLAs originated with network service providers, but are now widely used by telecommunicationservice providers and cloud computing service providers. Corporate IT organizations, particularly those that have embraced IT service management (ITSM), enter SLAs with their in-house customers (users in other departments within the enterprise). An IT department creates an SLA so that its services can be measured, justified and perhaps compared with those of outsourcing vendors.

SLAs measure the service provider’s performance and quality in a number of ways. Some metrics that SLAs may specify include:

Availability and uptime -- the percentage of the time services will be available

The number of concurrent users that can be served

Specific performance benchmarks to which actual performance will be periodically compared

Application response time

The schedule for notification in advance of network changes that may affect users

Help desk response time for various classes of problems

Usage statistics that will be provided.

In addition to establishing performance metrics, an SLA may include a plan for addressing downtime and documentation for how the service provider will compensate customers in the event of a contract breach. SLAs, once established, should be periodically reviewed and updated to reflect changes in technology and the impact of any new regulatory directives (changes to the PCI DSS standard, for instance).

read less
Comments
Dislike Bookmark

Answered on 04/10/2016 .Net/.Net MVC

Deepak Vijayan

.Net Tutor having largely industry experience

Hi, I provide .Net MVC training on the latest cutting edge technologies as MVC 5.0, Web API 2.0 and others. Please contact for more information regarding the courses.
Answers 20 Comments
Dislike Bookmark

Looking for .NET MVC

Find best .NET MVC in your locality on UrbanPro.

FIND NOW

Answered on 17/02/2016 .Net/.Net MVC

Salim Ahmed

Software Trainer

Its 4500 for MVC Training. Classes will be held at my location .If interested can contact me
Answers 14 Comments
Dislike Bookmark

About UrbanPro

UrbanPro.com helps you to connect with the best .NET MVC in India. Post Your Requirement today and get connected.

Overview

Questions 15

Lessons 18

Total Shares  

Top Contributors

Connect with Expert Tutors & Institutes for .Net MVC

x

Ask a Question

Please enter your Question

Please select a Tag