Monday, August 22, 2011

Paging in LINQ


public static IEnumerable<TSource> Page<TSource>(this IEnumerable<TSource> source, int page, int pageSize)
{
          return source.Skip((page - 1)*pageSize).Take(pageSize);
}

Html 5 Controls for ASP.Net MVC


http://www.codeproject.com/KB/webforms/Html5MVCWebControls.aspx

What is SVG?


SVG stands for Scalable Vector Graphics and it is a language for describing 2D-graphics and graphical applications in XML and the XML is then rendered by an SVG viewer.

HTML5 allows embeding SVG directly using <svg>...</svg> tag.
<!DOCTYPE html>
<head>
<title>SVG</title>
<meta charset="utf-8" />
</head>
<body>
<h2>HTML5 SVG Circle</h2>
<svg id="svgelem" height="200" xmlns="http://www.w3.org/2000/svg">
    <circle id="redcircle" cx="50" cy="50" r="50" fill="red" />
</svg>
</body>
</html>

http://www.tutorialspoint.com/html5/html5_svg.htm