Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 11th, 2008, 01:04 PM
Registered User
Join Date: Aug 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ICallbackEventHandler.GetCallbackResult Problem

Hello, I've been trying to use ICallbackEventHandler, it works fine with simple scripts and computations. however once I try using it with queries and stored procedure i now have problems. Below is the code i'm using for the Function GetCallbackResult() As String Implements ICallbackEventHandler.GetCallbackResult. The stored procedure spProcessTxn is called properly but suddenly ends after 10-20 seconds and the code returns a successful message, however upon checking it in the database no transaction was processed. Before trying to implement the ICallbackEventHandler the same code is called in a different function and it usually takes 4-5 minutes after executing the stored procedure.

            sqlcmd = New SqlCommand("spProcessTxn", _
                  New SqlConnection(strConn))
            sqlcmd.CommandType = CommandType.StoredProcedure
            sqlcmd.Parameters.AddWithValue("@repdateinput", strRepdate)
            'set time out to 10 minutes
            sqlcmd.CommandTimeout = 600

            Return "Transactions have been processed successfully." Catch ex As Exception
            Me.Results.ForeColor = Drawing.Color.Red
            Return "Error Processing Transactions"
        End Try


Similar Threads
Thread Thread Starter Forum Replies Last Post
ICallbackEventHandler Interface ilegend .NET Framework 2.0 2 August 25th, 2008 10:56 PM
implementing GetCallbackResult() and RaiseCallback learnit BOOK: Beginning Ajax with ASP.NET 0 April 28th, 2008 10:44 PM
GetCallbackResult in VB.NET 2005 Ramkumar_VN ASP.NET 2.0 Professional 0 July 6th, 2006 09:38 AM
Problem with GetCallbackResult in ASP.NET 2.0 r1c .NET Framework 2.0 0 November 24th, 2005 12:12 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.