Wednesday, August 25, 2010

To avoid ThreadAbortException while Redirect

You don't need to put the redirect in a try-catch block. Just replace all calls to Response.Redirect(url) with the following two lines:

Response.Redirect(url, false);

That will avoid the exception being thrown and gracefully end execution of the thread and event chain.

Tuesday, August 24, 2010

Iframe Reload


Thursday, August 19, 2010

The maximum report processing jobs limit configured by your system administrator has been reached.

1) Dispose report object and close it.
2)Increate the PrintJobLimit in regedit. Default value = 75.(Set -1 for unlimited)

Wednesday, August 18, 2010

Track Collapse/ Expand event of AJAX Collapsible Panel Extender to call javascript

Add This Code as java script................

 function pageLoad(sender, args) {

    function expandHandler(sender, args) {
        document.getElementById(focustextBox).focus();//ANY EVENT

    function collapseHandler(sender, args) {
      //  document.getElementById("tdMenu").style.width = "20px";

Thursday, August 12, 2010

Visual Studio 2008 and SQL Server 2008 - Schema Compare

To compare SQL Server 2008 development database with another on a third party server to make sure they are in sync, unfortunetly even on Visual Studio 2008 SP1 the schema compare does not work - "Schema Compare does not support SQL Server 2008".

Today a RC1 of the Visual Studio Team System 2008 Database Edition GDR was released; this fixes the schema compare amongst other things.

Link is here:

Wednesday, August 11, 2010

Add Control To Crystal Report Viewer Toolbar

Call This Method In To Page Loload(It will Remove Business Object Image)
private void customizeToolbar()
            Control ts = CrystalReportViewer1.Controls[2];
            if (ts.ToString().Contains("ViewerToolbar"))
                var BtnBack = new Button();
                BtnBack.ID = "btnBack";
                BtnBack.Text = "Back";
                BtnBack.ToolTip = "Back";
                BtnBack.Click += Button1_Click;
                ts.Controls.AddAt(16, BtnBack);