Asp.Net - Fitting Image To Box

by Bar Zohan 26. January 2010 19:53
Problem In a page you need to list items and their photos but those photos are all in different sizes. So you have a standart photo area and you have to fit those images into it. And not only fit them, but also you have to preserve their width to height ratio. So here is how we deal with this probl... [More]

Tags: , ,

.Net Framework | C# | Web | Asp.Net | MVC

Generic ListView using Reflection

by Bar Zohan 21. January 2010 02:06
A listview that creates it's column structure and populates it's rows directly from a generic list. [More]

Tags: , , ,

.Net Framework | C#

Adding Simple Plug-In Structure To Your Programs

by Bar Zohan 21. January 2010 01:40
Briefing: In this article I'm going to implement a simple plug in structured calculator. Calculator will take two numeric inputs from the user and user will select which calculator plug in to use. After that user will hit calculate button and our little program will ask the plug in to calculate tho... [More]

Tags: , ,

.Net Framework | C#

MVC Framework - Giving An Ajax Image Link

by Bar Zohan 21. January 2010 00:25
Mvc framework has an html helper for giving ajax links (Ajax.ActionLink), but it does not provide one  like Ajax.ImageActionLink. But ofcourse there is a simple, tricky workaround . <%= Ajax.ActionLink("[imglnk]", "IndexContent", new { id = "main" }, new AjaxOptions { UpdateTargetId = "Righ... [More]

Tags: , ,

.Net Framework | C# | Web | Asp.Net | MVC

How To Write a Very Basic Sql Data Provider using IQueryable and IQueryProvider

by Bar Zohan 20. January 2010 21:03
Briefing As mentioned in the title, our data provider is going to be very simple. Aim of this article is giving the main idea behind a Linq to Sql like data structure. So what we are going to do now is as simple as this; Create a new database and a new table inside it. (I'll use Sql Server 2008... [More]

Tags: , , ,

.Net Framework | C# | OOP | Design Patterns | SQL Server

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen