Posts

Showing posts from April, 2010

Run Crystal Report in VB.net 2005 Windows application using MS Access Database

1.) Add button on the form and write code behind the button frmviewreport.Show() frmviewreport is the another form on which we add the CrystalReportViewer

Maintain Scroll Position of Gridview

1.) Add two hidden textboxes namely hidDiv1 and hidDiv2 input id="hidDiv1" type="hidden" name="hidden1" runat="server" input id="hidDiv2" type="hidden" name="hidden2" runat="server" 2.) Add this code in the aspx page under script tag script type="text/javascript" language="javascript" function saveScrollPos1() { document.getElementById('hidDiv1').value = document.getElementById('div1').scrollTop; } function SetScrollPos1() { document.getElementById('div1').scrollTop = document.getElementById('hidDiv1').value; } function saveScrollPos2() { document.getElementById('hidDiv2').value = document.getElementById('div2').scrollTop; } function SetScrollPos2() { document.getElementById('div2').scrollTop = document.getElementById('hidDiv2').value; } /script 3.) under the onload event of body tag body onload="SetScroll...