Sunday, November 28, 2010

Why WCF RIA Services?

1. To provide best user experience the client application should be aware of business logic at server-side, WCF RIA service solves this problem by providing framework components, tools, and services that make the server-side application logic available to the RIA client without requiring you to manually duplicate the business layer programming logic at presentation layer.
2. RIA Client application always gets latest business rules as it get compiled.
3. RIA Services adds tools to Visual Studio that enable linking Client project(Silverlight) and Server project(Asp.net) in a single solution and generating code for the Client project from the middle-tier code.
4. The framework components support prescriptive patterns for writing application logic so that it can be reused on the presentation tier.
5. Domain Service - In RIA Services, you expose data from the Server project to Client project by adding domain services. Here, each domain service gets implemented as WCF Service.

Monday, August 30, 2010

Silverlight Animation

Silverlight uses timeline concept for animation (not frame based, used by Flash). There is a StoryBoard at the heart of every animation here. StoryBoard can contain one or more Key Frame elements.

There are 4 type of Key Frames here:
1. Linear : Moves from the starting state to the end state in a smooth, linear fashion.
2. Discrete : Jumps from starting state to end state instantaneously.
3. Spline : Moves from the starting state to the end state varying speed based on mathematically defined curve.
4. Easing : A more evolved version of Spline, moves from the starting state to the end state based on a easing funcation.

Wednesday, April 14, 2010

Outlook Addin Setup Project

Prob:  Manifest registry key in Addins changing from
[PRODUCTDIR]MyAddin.vsto|vstolocal
to
[PRODUCTDIR]MyAddin.manifest

Sol: Install Visual Studio 2008 SP1

Friday, January 8, 2010

Report Viewer not working in dev server (the + sign for grouping is not coming, rather a red X image coming)

Prob. - The report locally works fine, but when moved to the web server and try to pull it up it throws javascript errors.

Error msg : 'RSClientController' is undefined .....
'ClientControllerReportViewer1' is null or is not an object.

What's odd is - it appears the report actually runs despite the javascript errors, but the resulting report has the red "X"s on the image tags in the control itself and the report returns no data.

Soln :

1. The .axd extension in the application config in IIS should set to use framework  2.0 instead of 1.1

2. If the 1st soln is not working,
Click on the application virtual directory in IIS7 and click on the 'Handler Mappings' section. Then 'Add Managed Handler'
Request path: Reserved.ReportViewerWebControl.axd
Type: Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Name: Reserved.ReportViewerWebControl.axd

Once this was created, it worked fine in the Integraded mode AppPool.

3. Just add the following line to my web.config (it should get added automatically, but if not then ..)




 
4. If still not working !
- then, I have to see the code, post me that.

Thursday, October 29, 2009

Interfaces for collections classes - System.Collection

Object-type collections classes are in - System.Collection
Generic collection classes are in - System.Collection.Generic
Specific Collection classes are in - System.Collection.Specialized

Generic interfaces:-
1. IEnumerable<T> - derives from IEnumerable interface
2. ICollection<T>
3. IList<T> - derives form ICollection interface
                  allows to access the collection with indexer
4. IDictionary<T> - implemented by ICollection interface
5. ILookup<T> - multiples values for a key
6. IComparer<&> - has only compare() function to compare two objects
7. IEqualityComparer<T>

Non-Generic versions of interfaces:-
1. IEnumerable - required if a foreach statement is used with the collection
2. ICollection
3. IList - derives form ICollection interface
             allows to access the collection with indexer
4. IDictionary - implemented by ICollection interface
                      has key and value pair
 

Tuesday, October 27, 2009

Ctrl+. and Shft+Alt+F10 shortcuts for Visual Studio

There are few great shortcuts for Visual Studio.
1. The Ctrl+. OR Shift+Alt+F10 - are great shortcuts for adding the required namespaces in a class.
2. Ctrl+E,D - This shortcut is for developers, who have the habit of keeping the code well formatted.
3. Shift+Alt+Enter - All time fav. - for full screen.