asked on
<System.Web.Services.WebMethod()> _
Public Shared Function writeSingleRecord(ByVal id As Long) As Boolean
Try
PrepareAndPassData(id)
Return True
Catch ex As Exception
Return False
End Try
End Function
Public Sub PrepareAndPassData(id As Long)
Dim listOfParameters As New List(Of SqlParameter)
Dim validatedPaymentsParam As New SqlParameter("@Id's", SqlDbType.BigInt)
validatedPaymentsParam.Value = getValidatedPayments()
listOfParameters.Add(validatedPaymentsParam)
'Dim dt = DataAccessLayer.GetDataAsDatatable(listOfParameters, _connstr, "usp_GetValidatedRecordsForPayment")
'WriteToExcel(dt)
Try
WriteToExcel(DataAccessLayer.GetDataAsDatatable(listOfParameters, _charterProdConnstr, "usp_GetValidatedRecordsForPayment"))
Catch ioEx As System.IO.IOException
PassToErrorHandler(ioEx, System.Reflection.MethodInfo.GetCurrentMethod().ToString(), System.Reflection.Assembly.GetExecutingAssembly().GetName().Name)
Catch ex As Exception
PassToErrorHandler(ex, System.Reflection.MethodInfo.GetCurrentMethod().ToString(), System.Reflection.Assembly.GetExecutingAssembly().GetName().Name)
End Try
End Sub
Dim cph As System.Web.UI.WebControls.ContentPlaceHolder = Master.FindControl("MainContent")
ASKER
The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.
TRUSTED BY
ASKER