Posts

Showing posts from 2011

Dot Net Versions

Version Runtime (CLR) Framework 1.0 First Release First Release 1.1 New Small Changes 2.0 New Lots of Changes 3.0 Same as 2.0 WinFX libraries 3.5 Same as 2.0, but new C# 3 Compiler Some Changes 3.5 SP1 Same as 2.0, with C# 3 Whole Lot of Changes 4.0 New Lots of Changes 4.0 PU1 Same as 4.0 Workflow and Azure Changes Courtesy Scott Hanselman's Computer Zen

Hidden Coolspots

Image
This is  a place where we could bathe in very shallow water, but it is very cold even it is a hot day around 1.30 pm. Even a small baby can walk on this stream without any danger. Location is near to the Kadugoda railway station in Boralugoda village near Kosgama.

IoC with Ninject

Image
This will show how to use Ninject in a web application in Layered architecture. DAL is made up of data access connections and commands. Mock connections and command has been introduced implementing IDataConnection & IDataCommand interfaces. Modules are the binding points of Ninject to the appropriate implementation. using DAL.Data; using Ninject; using System.Data.SqlClient; namespace DAL.Modules {     public class DataModule : Ninject.Modules.NinjectModule     {         public override void Load()         {             Bind<idbconnection>().To<sqlconnection>().WithConstructorArgument                 ("connectionString", @"Data Source=E:\Test Projects\Net\MvcApp\MvcApp\App_Data\MyDatabase.sdf");     ...

Still flowing

Image
At Kithulgala May, 2010

ObjectDataSource row counts

protected void odc_Selected(object sender, ObjectDataSourceStatusEventArgs e)         {             int rowCount = ((xDataTable)e.ReturnValue).Count;             if (rowCount < 1)                 lblMessage.Text = "No rows found";             else                 lblMessage.Text = rowCount + " rows found";         }

ASP.Net Date & Time Pickers

One of the best and simple to use http://www.markbeaton.com/SoftwareInfo.aspx?ID=868292da-e93e-4e85-b455-41263ed15cd5 List of various calendar controls from ASP.Net http://www.asp.net/community/control-gallery/browse.aspx?category=52 Ajax based controls http://www.michaelkbell.com/timepicker/