ASP.NET MVC3 includes 3 new “ActionResult” Types. HttpNotFoundResult RedirectResult HttpStatusCodeResult HttpNotFoundResult: Instance of HttpNotFoundResult class indicates to client(browser) that the requested resource was not found. It returns a 404 HTTP status code to the client. Generally we return 404 status code if a requested webpage is not available. In case of MVC applications we 404…
Modernizr is the right micro-library to get you off and running with HTML5 & CSS3 today. Modernizr adds classes to the <html> element which allow you to target specific browser functionality in your stylesheet. You don’t actually need to write any JavaScript to use it. Have you ever wanted to do if-statements in your CSS…
We are pleased to announce Tech∙Ed on the Road, where we put together the best sessions from Tech∙Ed India 2011 and bring them to your city. These events are not only about content and sessions – they also provide an opportunity for you to interact with and have your questions answered by the very people…
How to manage the controller’s session state? Simply we can decorate the controller class with ‘SessionState’ attribute. [SessionState()] attribute accepts SessionStateBehaviour enumeration. SessionStateBehaviour enumeration has the following constants:
My Presentation on “Beginning with Windows Azure” In Windows Azure Camp in Microsoft IDC.
ASP.NET MVC provides many built-in HTML Helpers. With help of HTML Helpers we can reduce the amount of typing of HTML tags for creating a HTML page. For example we use Html.TextBox() helper method it generates html input textbox. Write the following code snippet in MVC View:
Microsoft Tech·Ed India 2011 is the premier technical education and networking event for tech professionals interested in learning, connecting and exploring a broad set of current and soon-to-be released Microsoft technologies, tools, platforms and services. This 3-day event will focus on technical education, product evaluation and community. The event will include: Keynotes by Senior Microsoft…
Hi Everyone, Daily .NET Tips is aiming to sharing useful coding tips and tricks for .NET Developers. This site completely design for sharing Tips and Tricks, useful Code Snippet which anyone use in daily development work and targeted anything related with .NET. Lets put a few frequently interesting tips which we have already published over…
Action Filters are available from ASP.NET MVC 2. Action Filters are the attributes used to apply pre processing or post processing logic on the Action methods and Action Results declarative fashion (i.e.: before executing an action method or after executing action method , before returning an action result or after returning action result). For example…