9/8/12

What is the difference between ObjectSet and EntityCollection?

When working with the Entity framework, you may see that there are two types of collection created, ObjectSet and EntityCollection. Many of us get a bit confused as of why there are two types of collections and about their use. I will try to describe my understanding of their differences: ObjectSet Definition from MSDN: public class ObjectSet<TEntity> : ObjectQuery<TEntity>,...

9/3/12

Wireframe a Mobile Application

og-bit.com When designing a mobile application, one of the first activities should be to wireframe the application first. This allows us to define the application views, navigation and the user interaction. What is a wireframe? This is the design process of the application in which you can create rough sketches of how the application should look and behave. This allows us to identify any...

8/23/12

Protect Your Form Postback with Anti-Forgery

og-bit.com To secure a web page postback from malicious exploits, we can add a security token as a hidden field to the form or a cookie. When a postback is received, this token is validated to make sure that the request is not a cross-site request forgery. When working with Razor Web Pages and...

8/21/12

Deploy Website from WebMatrix to Azure

og-bit.com If you have created a web application on WebMatrix and want to host this application on a Windows Azure website, you will need to take a few additional steps to make sure your web application gets deployed to the correct location of your website. After creating the website on Windows...

8/19/12

Functions in ASP.Net Razor Web Pages

When using Razor Web Pages, it is very common to embed dynamic content on the HTML markup by using a server variable with the following format: @{    var message = "Hello"; } <!DOCTYPE html> <html lang="en">     <head>         <meta charset="utf-8" />         <title></title>    ...