Saturday 25 January 2014

ASP.NET MVC Interview point of view concepts



Installing MVC components
image



What MVC version is being used by my application
image



image




Difference between MVC and Web forms application

image




Difference between ViewData and ViewBag in MVC application

image



Models in MVC application
image



Adding Employee Model Class(Domain Class)


Note: Model folder consist of either Entities or Business objects
image




image



image



image



image




Data access in MVC using entity framework With Entities objects

image



image



image



image




image



image



image



image



image



image

Note:  Passing NULL in SetInitializer method will not do any initialization work since we have been using existing DB;




Generating ActionLink or HyperLink in MVC application

image



image



image




Working with Multiple Tables in MVC

image



image



image



image



image



image



image




image



image



image



Using Business Objects as Model in MVC application

Note:  Business object will have both State and Behaviour, it will be used by Business layer code.

image



image




image



image



image



image



image



image



image



Using Data Transfer objects as Model in MVC application

image



image




image



image



image



image



image


image




Form Collection and Model Binders in MVC


Form Collection object in MVC

image




image



image



image



image



image



image



image



Using Modal Binders in MVC

image



image

Note:  Modal binder are used to map submitted values into right parameter of Action



image




Update modal function in MVC


image


image




image




image

Note: Modal state object is used to check the validity of the posted data.  it will return True if it is Valid.




image

Note: Update Modal object will bind the posted data to entity object automatically without any parameter specified in the action method.



image

Note: Action name attribute will be used to specify the action for action method even though action method’s name is different..



Difference between updatemodel and tryupdatemodel


image



image



image



image



image




Unintended updates in mvc


image



image



image

Note: by changing Name property from EditFor to DisplayFor will give error since it has marked as required parameter.



Preventing unintended updates in mvc

image


image


Included list of overloaded updatemodel function

image



Excluded list of Update Model overloaded function

image




Including and excluding properties from model binding using bind attribute


image



image



image




Including and excluding properties from model binding using interfaces


image



image



image




Customizing the auto generated index view


image



image



image



image




image




Html helpers in mvc


image



image



image




Generating a dropdownlist control in mvc using HTML helpers


image


image



image




image



image



image



image



image




Difference between Html TextBox and Html TextBoxFor


image



image



image



image




image




image




Using displayname, displayformat, scaffoldcolumn attributes in asp net mvc application


image


image



image



image



image



image



image



image




Using datatype and displaycolumn attributes in asp net mvc


image



image





Opening a page in new browser window in asp net mvc

image


image



image



image



image


image




Hiddeninput and readonly attributes in mvc


image



image




Display and edit templated helpers in asp net mvc


image


image



image



image



image




Accessing model metadata from custom templated helpers


image



image





Displaying images in asp net mvc


image



image





Custom html helpers in mvc


image




image




Html encoding in asp net mvc


image



To disable HTML encoding, we need to use IHtmlstring and HTML.RAW

image



image




Partial views in mvc


image



image



image



image




Difference between html.partial and html.renderpartial


image





T4 templates in asp net mvc


image




What is cross site scripting attack


image



image



image



How to prevent cross site scripting attack


image



image



Layout view in mvc


image



image



image





ViewStart in asp net mvc


image



image



Change the Master page file in controller itself

image



image



image




Named sections in layout files in mvc


image



image


image




Implement sorting in asp net mvc


image



image



image



Deleting multiple rows in mvc

image



image



image





Ajax with asp net mvc


image


image


image





What is Ajax and why should we use it


image



image



image



image





Action filters in mvc

image




Custom action filters in asp net mvc


image



image




image



image




OutputCache attribute in mvc

image





CacheProfiles in mvc


image


image




What is JavaScript minification

image



image




What is CDN Content Delivery Network


image



image




image



image




childactiononly attribute in mvc


image



image



image



image




image





Action selectors in mvc


image


image


image



image




What is Unobtrusive JavaScript


image



image



image



image





Unobtrusive validation in asp net mvc


image


image



image




Enable client side validation in asp net mvc


image



image




What is the use of NonAction attribute in mvc


image



image




Authorize and AllowAnonymous action filters in mvc


image



image



image




HandleError attribute in mvc


image



image



image



image



image



image



image




Compare attribute in asp net mvc


image



image



image




RequireHttps attribute in mvc


image



image




Remote validation in mvc when javascript is disabled


image



image



image



image






Creating custom validation attribute in asp net mvc


image

image



image


image



image




Blogger Labels: concepts,Interview,components,version,Difference,ViewData,ViewBag,Models,Employee,Model,Class,Domain,Note,folder,Entities,Data,framework,NULL,SetInitializer,method,ActionLink,HyperLink,Multiple,Tables,Objects,State,Behaviour,layer,Transfer,Form,Collection,Binders,Modal,binder,parameter,Action,Update,True,Valid,Name,EditFor,DisplayFor,error,properties,interfaces,auto,index,Html,helpers,TextBox,TextBoxFor,Hiddeninput,Display,custom,Partial,templates,Layout,ViewStart,Change,Master,controller,Implement,Ajax,OutputCache,CacheProfiles,JavaScript,Content,Delivery,Network,selectors,Unobtrusive,validation,Enable,client,NonAction,Authorize,AllowAnonymous,HandleError,Compare,RequireHttps,Remote,updatemodel

No comments:

Post a Comment