Archive for the 'Uncategorized' Category

JQuery print part of div only

Wednesday, May 19th, 2010

So here is an interesting jquery plugin called jqprint it allows one to specify any element and sent it to print. Assuming you have an element with id printButton and a content area called divToPrint ?View Code JAVASCRIPT1 2 3 $(’#printButton’).live(’click’, function() { $(’#divToPrint’).jqprint(); }); This will pop up the print functionality in your browser [...]

Share

Url Helper Extension Method for ASP MVC in form tags when using IIS 6

Monday, December 21st, 2009

So I was going through some code of codebettercanvas and found it interesting of Karl Seguin using Html Helper extension for his form tags, which has its elegance. e.g ?View Code HTML1 <form id="login" action="!{Html.LinkTo<HomeController>(c => c.Login()) }" method="post"> Basically it calls an extension method called LinkTo with a generic controller and a lamda for [...]

Share