Archive for August, 2010

Tuples in .NET Framework 4.0

Posted: August 25, 2010 in .Net Framework

Another new feature in the .NET 4 Framework is support for tuples,which are similar to anonymous classes that you can create on the fly. A tuple is a data structure used in many functional and dynamic languages, such as F# and Iron Python. By providing common tuple types in the BCL, we are helping to [...]

Printing a datagrid

Posted: August 19, 2010 in ASP.NET

Hi, Here I would like to share the code to print a datagrid in ASP.NET Put the given code in tag function CallPrint(strid) { var prtContent = document.getElementById(strid); var WinPrint = window.open(”, ”, ‘letf=0,top=0,width=1,height=1,t oolbar=0,scrollbars=0,status=0′); WinPrint.document.write(prtContent.innerHTML); WinPrint.document.close(); WinPrint.focus(); WinPrint.print(); WinPrint.close(); //prtContent.innerHTML = strOldOne; } Put your datagrid in a tag. Here I use a div [...]

Hi friends, Session clearing is a very important issue after the user has logged out from his dashboard. After his/her logging out, the pages meant for the user should not be displayed. When we try to access these through links login page or any other respective pages are displayed. For the same we remove the [...]