Chromes Sitecore uses special markers – chromes – to tell apart placeholders, renderings, fields, and edit frames in the Page Editor. A chrome is server-generated and marks the beginning and the end of a potentially editable section. It also provides all the essential metadata for the client side scripts to rely on: The metadata for […]
Posts Tagged ‘mvc’
Declarative data caching in .NET business layer
One of the most effective ways to improve application performance is to implement data caching. Most of the applications are relatively retrieving the same data from external sources like database of web service and if that source data is never or seldom changes then application is just wasting CPU time and I/O querying the source […]
Cascading MVC renderings in Sitecore 7
I will make a short break in my series about YouTube Video Picker. This one is worth it. MVC Pipelines You have probably seen Alex Shyba’s post on how to cascade renderings in Sitecore 6.5. It’s a neat solution with a little twist to the insertRenderings pipeline (called as part of renderLayout). It’s great but […]
ASP.net Cascading Dropdownbox and Jquery
Background: A few days back as part of my .Net learning effort I had to deliver a task that depicts the below screen When the end-user types the username, the application should validate the username from the database and display his / her training details in the dropdown box named TopicNames and LevelName. The application then […]
MVC controller actions vs Web API vs SignalR – what to use?
Over the course of a last few years Microsoft unleashed two new web development frameworks: Web API and SignalR, both are suitable for asynchronous communications between web client and web server. And, of course, we still have MVC controller actions that can be used for asynchronous communications too and can accept and return JSON objects. […]
Integrating ASP.NET MVC authentication with SiteMinder SSO
SiteMinder is an enterprise-class secure single sign-on solution by CA (Computer Associates) which is employed by many large companies to secure their intranet access and provide single sign-on functionality to various intranet applications. SiteMinder has a broad support for different application frameworks which is making possible to use in heterogeneous enterprise environment. For example, when […]
Gracefully handle MVC login session expiration in javascript
If your web application is built using ASP.NET MVC stack and it requires user authentication and authorization to access a certain parts of the application (or application as a whole), then the chances are that you using [Authorize] controller attribute. This attribute could be applied to controller as a whole or to any of the […]
ASP.NET MVC anti-forgery token demystified – part 3: AJAX
This blog post is third and final in series about MVC anti-forgery (CSRF) token. Part 1. Part 2.As we talked about it earlier, MVC have a great built-in functionality for securing form posts with anti-forgery tokens and it’s even possible make it work across multiple web applications. However, these days modern web applications tend to […]
ASP.NET MVC anti-forgery token demystified – part 2: inside
In the previous installment of this post series I talked about CSRF attack and how to prevent it using ASP.NET MVC built in components. Today I want to dive deeper into the framework code and show you what’s under the hood to anti-forgery token implementation in MVC. Some time ago Microsoft took a huge step […]
ASP.NET MVC anti-forgery token demystified – part 1: what is it?
Securing your web application is now more important than ever because various security attacks are growing in numbers and becoming more sophisticated and frequent. One of the most common types of attacks is Cross Site Request Forgery (CSRF) attack. In this kind of attack malicious web sites are hijacking a previously authenticated user sessions to […]
A Note About Custom Validators for MVC with Sitecore
In a post about creating editable labels in Sitecore from John West, he points out a technique to allow a developer to use annotations within your MVC model to attach “fields” within the context item that would be used to label form fields. The same technique can be used to power custom validators with editable error […]
Visual Studio Online, the end of the developer workstation?
Last week Microsoft released Project Monaco which is essentially Visual Studio as a service. An IDE in the cloud. Visual Studio has long been regarded as one of the premier development environments for Windows based and Web development. It integrates perfectly with the entire Microsoft stack and its debugging features are second to none. It […]