Tuesday, August 23, 2011
How to make a postback withoud validation for a button in ASP.NET webform?
Set
CauseValidation to false.
<asp:Button runat="server" ID="button1" Text="Go" OnClick="Button1_Click" CausesValidation="false"/>
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);
}
return source.Skip((page - 1)*pageSize).Take(pageSize);
}
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
Subscribe to:
Posts (Atom)