News Archives 
   
(click month to expand)
  

Recent Technology News Stories

Solentive News
Multi-map generic collection class in C# - A Dictionary collection class that can store duplicate key-value pairs  [click for more...]
The generic Dictionary collection class in .NET requires the key to be unique. But many applications/services require a flexible, generic Dictionary collection type that can accept multiple values for a key. This article explains one such generic Dictionary collection type.
9/03/2009   [Link] Bharath K A
Google Maps in HTML, ASP.NET, PHP, JSP etc. with ease  [click for more...]
The Article will guide you with complete knowledge of how to add a google map in your webpage with knowledge of JAVASCRIPT, Use of Geocoder, Use of InfoWindow, Use of Marker, Tabbed Markers, Maximising marker, Creating context menu in your map
9/03/2009   [Link] Abhishek Sur
New Updates to the ASP.NET Wiki  [click for more...]
The Wiki continues to grow with updated Wiki Articles on State Management, Themes in ASP.NET, ASP.NET Open Source Projects, and more. Share your knowledge and earn Community Recognition points by contributing to the ASP.NET Wiki.
9/03/2009   [Link] ASP.NET News
ASP.NET MVC Release Candidate 2 Now Available  [click for more...]
ASP.NET MVC enables Web developers to build compelling standards-based Web solutions that are easy to maintain because it decreases the dependency between layers by using the Model-View-Controller (MVC) pattern and provides complete control over the page markup. It also improves testability which enables Test Driven Development (TDD). Click here to download ASP.NET MVC or to learn more about it.
9/03/2009   [Link] ASP.NET News
ASP.NET C# Search Engine (highlighting, JSON, jQuery & Silverlight)  [click for more...]
More professional ASP.NET c# search with proper document summary, query highlighting and RIA display options.
9/03/2009   [Link] craigd
Enterprise Library Call Handlers  [click for more...]

Call Handlers are Enterprise Library's extension mechanism. They allow code to be injected before or after a method is called. Enterprise Library, as of version 4.1, comes with the following call handlers and associated handler attributes, in assembly Microsoft.Practices.EnterpriseLibrary.PolicyInjection.CallHandlers:

  • AuthorizationCallHandler / AuthorizationCallHandlerAttribute
  • CachingCallHandler / CachingCallHandlerAttribute
  • ExceptionCallHandler / ExceptionCallHandlerAttribute
  • LogCallHandler / LogCallHandlerAttribute
  • PerformanceCounterCallHandler / PerformanceCounterCallHandlerAttribute
  • ValidationCallHandler / ValidationCallHandlerAttribute

If you know the Enterprise Library, you can easily guess their meaning from their names.

I have written two additional call handlers:

  • TransactionCallHandlerAttribute (implements ICallHandler): wraps the target method in a transaction scope
  • TriesCallHandlerAttribute (implements ICallHandler): tries to invoke the target method a number of times, while an exception is thrown

For simplicity's sake, I have implemented ICallHandler in the attribute class, so the ICallHandler.CreateHandler method only returns this.

Usage is like this:

[TransactionCallHandler(TransactionScopeOption.Required)]

void SomeMethod();

and

[TriesCallHandler(3, Delay = 500)]

void SomeOtherMethod();

Enjoy!

9/03/2009   [Link]
ASP.NET Page Events Lifecycle  [click for more...]

When using  master pages, the normal page event lifecycle is a little different. Here is the actual order:

  1. Page.OnPreInit
  2. MasterPageControl.OnInit (for each control on the master page)
  3. Control.OnInit (for each contol on the page)
  4. MasterPage.OnInit
  5. Page.OnInit
  6. Page.OnInitComplete
  7. Page.OnPreLoad
  8. Page.OnLoad
  9. MasterPage.OnLoad
  10. MasterPageControl.OnLoad (for each control on the master page)
  11. Control.OnLoad (for each contol on the page)
  12. Page.OnXXX (control event)
  13. MasterPage.OnBubbleEvent
  14. Page.OnBubbleEvent
  15. Page.OnLoadComplete
  16. Page.OnPreRender
  17. MasterPage.OnPreRender
  18. MasterPageControl.OnPreRender (for each control on the master page)
  19. Control.OnPreRender (for each contol on the page)
  20. Page.OnPreRenderComplete
  21. MasterPageControl.SaveControlState (for each control on the master page)
  22. Control.SaveControlState (for each contol on the page)
  23. Page.SaveViewState
  24. Page.SavePageStateToPersistenceMedium
  25. Page.OnSaveStateComplete
  26. MasterPageControl.OnUnload (for each control on the master page)
  27. Control.OnUnload (for each contol on the page)
  28. MasterPage.OnUnload
  29. Page.OnUnload
9/03/2009   [Link]
Visual WebGui AJAX platform/framework 6.3.3 Released  [click for more...]
Gizmox released its Visual WebGui development environments' version 6.3.3 as a further stabilization of the 6.3 Ajax framework/platform for developing and deploying RIAs. This version is released only a few days after 6.3.2 and it solves the following issue. This is the change log for version 6.3.3 Bugs fix ---------------------------------------------------------------------------------------------- VWG-4128 - Showing of dialog form or messagebox from with in a dialog form should not hang browser...(read more)
9/03/2009   [Link]
LocaleManager - a practical tool to manage resources files of different locales for Java/Flex and .NET  [click for more...]
Implementation of a software tool in C# to help to manage .resx files for .NET or .properties files for Java or AS3 of different locales.
9/03/2009   [Link] bhan2000
ProgressBar with percentage  [click for more...]
Component that extends the native .net progress bar with percentage properties and the ability to display it in the progress bar.
9/03/2009   [Link] bn2vs
Learn How to Perform Validation in ASP.NET MVC  [click for more...]
Stephen Walther demonstrates how you can validate form data in an ASP.NET MVC application. Learn how to use model state and validation HTML helpers. Learn how to take advantage of the IDataErrorInfo interface to customize your validation error messages.
9/03/2009   [Link] ASP.NET News
ATL Windowless ActiveX Media Container  [click for more...]
Full-fledged ATL Windowless ActiveX Container. Ideal for hosting Windows Media Player, Transparent Flash and Silverlight Animations.
9/03/2009   [Link] Ernest Laurentin
Dependency Injection on an ASP.NET Page  [click for more...]

In order to have dependency injection on your ASP.NET pages, the best way to go is through a customized page handler factory. A page handler factory is a class directly or indirectly derived from PageHandlerFactory who has the responsibility to create a new instance of a Page. What we do is, we call the base class implementation of GetHandler method and then we call IUnityContainer's BuildUp method. Of course, we must also

  1. have previously initialized the Unity container, possibly on Application_Start method of Global.asax.cs
  2. configure interceptors for the types you want in Web.config. In this example, since I am registering an interface, I will be using InterfaceInterceptor, but you can also use VirtualMethodInterceptor or TransparentProxyInterceptor. I will talk about these in a future post.
  3. replace the existing page handler factory with our onw in Web.config

See the attached code, and replace ISomething for your own interface and ConcreteSomething, in Web.config, for the actual implementation of this interface.

9/03/2009   [Link]
Ajax  [click for more...]
The objective behind writing this article is to make use of Ajax Control Toolkit in implementation.
9/03/2009   [Link] ashishparihar1310
Transactions on object models  [click for more...]
Rollback or commit changes that you did on .NET objects.
9/03/2009   [Link] Ronald Schlenker
Automatically Minify, Combine, Compress, and Cache *.js and *.css Files in your ASP.NET Project  [click for more...]
Automatically minify, combine, compress, and cache .js and .css files in your ASP.NET project
9/03/2009   [Link] jeff chin xyz
A multi-lingual search engine developed with remarkable cost savings  [click for more...]
The new case study was published on the visualwebgui.com showcases section: Visual WebGui saves a multi-lingual search engine 2 years and $250k This case showcases the remarkable cost savings of the development and deployment process of FindItByMe.com multi-lingual search engine with Visual WebGui. The project was to create a multi-lingual search engine that runs as a website that is accessible to the public from any standard web browser. This means that any internet user should be able to surf onto...(read more)
9/03/2009   [Link]
Streaming Chart images as FileResult from MVC Controllers  [click for more...]
Using a proper MVC pattern to stream an image from Microsoft Chart controls for the Microsoft .NET Framework 3.5.
9/03/2009   [Link] Nic_Roche
Enterprise Library Lifetime Managers  [click for more...]

Enterprise Library comes with several lifetime manager, which you can use to control how your objects are stored and retrieved. The available lifetime managers are:

  • ExternallyControlledLifetimeManager: stores a weak reference to objects which are created elsewhere
  • PerThreadLifetimeManager: stores objects in a thread static dictionary)
  • ContainerControlledLifetimeManager (the default): stores objects in the Unity container
  • TransientLifetimeManager: does not store objects, create a new one every time it is requested

In web applications, we may need additional options, for example:

  • Store objects in the current session
  • Store objects in the current request
  • Store objects in the current application

So, I wrote three new lifetime managers, for each of these requirements: WebSessionLifetimeManager, WebRequestLifetimeManager and WebApplicationLifetimeManager. Another possibility would be a pooled lifetime manager, which will be the subject for a future post.

9/03/2009   [Link]
Using DayPilot 2 (Outlook-like calendar/scheduling control for ASP.NET)  [click for more...]
Showing the features of a flexible ASP.NET event calendar/scheduling control.
9/03/2009   [Link] Dan Letecky
Copyright © 2007 Solentive | Disclaimer | Contact | Home