<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")
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE