Posts

Showing posts from January, 2012

Difference Between Viewresult() and ActionResult()

ActionResult is an abstract class that can have several subtypes: a) ViewResult - Renders a specifed view to the response stream b) PartialViewResult - Renders a specifed partial view to the response stream c) EmptyResult - An empty response is returned d) RedirectResult - Performs an HTTP redirection to a specifed URL e) RedirectToRouteResult - Performs an HTTP redirection to a URL that is determined by the routing engine, based on given route data f) JsonResult - Serializes a given ViewData object to JSON format g) JavaScriptResult - Returns a piece of JavaScript code that can be executed on the client h) ContentResult - Writes content to the response stream without requiring a view i) FileContentResult - Returns a fle to the client j) FileStreamResult - Returns a fle to the client, which is provided by a Stream k) FilePathResult - Returns a fle to the client You should use ViewResult to make code more readable and find bugs easier, but there can be other benefits too. Since I use PO...

Interview Questions - Part 6

1. What is LAYOUT keyword does in MVC 3. 2. What is the difference between ASP.NET and MVC 3. How does master pages implementation achieved in MVC 3 4. What are the filters available in MVC 3 5. How do security can be implemented in MVC 3 6. Can I have constructors in struct 7. Why can't I inherit a struct 8. If I have two structs then if I want to compare both of them 9. What is the difference between Aggregation & Composition. Give an example to explain each. 10. What is the difference between Generalization & Specialization. Give an example to explain each. 11. What are the ways I can implement Entity Framework. 12. What is the different between DataContract & MessageContract and when to use what 13. What are the types of instance creation in WCF 14. How do we implement Transactions in WCF calls 15. What is the difference between Cluctured & Nonculstured indexes 16.

SQL SERVER – Basic of JOINs

A good blog from my favorite SQL expert, Pinal Dave, who added details about JOINs with proper explanation, examples and images... Click Here

SQL Server- Union and Union All

A good link which explains this topic with simple example; Click Here

Choosing a UI Pattern (MVC, MVP, and ASP.Net MVC)

I came across a nice blog by Greg Galipeau, who explained to choose a UI pattern; MVC, MVP, ASP.NET MVC. Please click here to get the details.