Posts

Showing posts from 2011

MVC 3 Razor And Partial View

Image
MVC 3 Razor And Partial View How do I use partial view in MVC 3? Great!! Sometime, I don’t know why, I stuck for small things. I was trying to load two partial views(MVC 3). But, after spending 6 hours I got to know how to load. This retards my brain. I have searching for good articles on MVC 3 & Partial views. But, I failed to get it. So, Let us go in dept on MVC3 & Partial Views. Partial view and User Controls are somewhat same in purpose of usage. But the way in which they is totally different. I will explain about these in detail. Step 1 Create ASP.Net MVC 3 project using VS 2010. I have named it as ARVPartialView. Add one partiaview and name it as PartialIndex Step2 I have created one module like PartialModel as given bellow. using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace ARVPartialView.Models { public partial class PartialModel { public string Name { get; set; } public int Actual { get; se

What is Silverlight Application Library Caching?

Image
What is Silverlight Application Library Caching? I was just working with one Silverlight application that has too many 3rd party assemblies (Excel, theme, charts etc). Also it was taking long time while downloading first time. Obviously, this is because of large XAP size. So, I thought to divide entire application in multiple projects which will create multiple XAP’s and then use it by on demand load. But, I have used more third party dll’s. In this case it is too hectic to store them on separate XAP and then load it on demand. Then, I came to know about new concept (for me) about “ Application Library Caching” So, What is Assembly caching? We all know about the on demand download of XAP file. To do this, we need to write code for downloading the external xap files using WebClient. Application Library caching does the similar thing for you very easily. Suppose, if you have a bigger application and used a huge 3rd party libraries, this easy step will help you make a separate

Making Offline MVC 3 Application.

Image
Hi Guys!! I never thought building offline MVC 3 app could be this much simple.  I had a question in my mind for a long time: Why this offline application? How it works? Etc.. As per my knowledge, in Silverlight there is a smart client concept. So that, even we can see and work when there is no network available (flight mode or in remote area). Whenever device/app detects network, then either the user can invoke saving operation into server or the application can automatically triggers event to save data. Silverlight did a great job in this aspect. But, in the case of an ASP.NET/HTML application, how can it be done?. For the same purpose, HTML 5 introduces a MIME type manifest and local storage.  It mainly adds one manifest file to load all required recourses. This walkthrough is to demonstrate how we can create/develop offline/online application using MVC 3. I will first create an ASP.NET MVC 3 empty app using VS 2010 and I will add offline htm page to the project. The HTML page will

Claims based authentication(Basic details)

In this article, I am trying to explain some basics of new claims based authentication with live scenario. First of all, what are authentication methods are available? ASP.NET  when launched supported 3 types authentications namely: 1.      Windows Authentication (better for Intranet scenarios and credentials are stored inside Active Directory), 2.      Passport Authentication  (Now Live ID Authentication, can be used   via Claims Based Authentication). 3.       Form Based Authentication  (where user data is maintained inside SQL Database).   ASP.NET 2.0 provided some tools and classes and made FBA much simpler. It automatically created required tables, stored procedures, UI to manage Users (Membership Providers), their access rules by their roles (Role Provider) and store some more data about users (Profile Provider). In the Microsoft world, authentication is usually performed by Active Directory. I claim to be Arvind, and i prove this to Active Directory by providing my pass

CRM online 2011 with Odata and WCF

Hi guys, I have strugled a lot with working on CRM 2011 online. It has killed my two day's. Oh!!  It might be beacause of my low brain or subject :) :) Any how I am able to manage to get data from CRM 2011 online.  In my previous blog, I have explained about basics about CRM 2011. Now, I am going to explain how do we access CRM 2011 online data using services. CRM 2011 Online 1. Register for CRM 2011 Online using Windows Live ID. You can get it here: http://crm.dynamics.com/en-us/home Available services in CRM 2011. CRM can allow multiple Organizations to be created on 1 CRM installation. Each Organization can be for a different company/purpose. So, users may want to access one of the Organizations on CRM installation. If the user/code already knows the Organization URL OR Organization Service URL then fine he can directly use organization service. If not known, then he needs to write code to connect Discovery Service URL, then browse through all Organizations ava

jQuery Mobile.- Play with jQuery (No coding knowledge required.)

JQuery Mobile (Alpha 2.0). Introduction o jQuery Mobile, a user interface (UI) framework to write a functional mobile web application without writing a single line of JavaScript code.  jQuery Mobile o jQuery Mobile is a touch-friendly web UI development framework that allows to develop mobile web applications that work across smart phones and tablets. The jQuery Mobile framework builds on top of jQuery core and provides a number of facilities, including HTML and XML document object model (DOM) traversing and manipulation, handling events, performing server communication using Ajax, as well as animation and image effects for web pages. The mobile framework itself is a separate, additional download of around 12KB (minified and gzipped) from jQuery core, which is around 25KB when minified/gzipped. As with the rest of the jQuery framework, jQuery Mobile is a free, dual-licensed (MIT and GPL) library. Downloads available @ o http://www.ibm.com/developerworks/web/library/wa-