473,289 Members | 2,040 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,289 software developers and data experts.

Returning Output Parameters using a TableAdapter

I have a typed dataset in asp.net 2.0, that returns 2 output parameters.
Unfortunately I have not been able to capture these values:

Private Sub GetValues()

Dim ta As New dsValuesTableAdapters.MyValuesTableAdapter
Dim dt As New dsValues.MyValuesDataTable
Dim value1 As Integer
Dim value2 As Integer

Try
ta.Fill(dt, value1, value2)
'value1 and value2 both have a zero value, but should have the
value 4 (in this example)
lblValue1.Text = value1.ToString
lblValue1.Text = value1.ToString

Catch ex As Exception
Throw ex
End Try

End Sub

How can this be accomplished using typed tableadapters?
May 12 '06 #1
1 3055
Oops! This actually worked correctly; in my real procedure I needed to pass
in an input value, which I did, but I forgot to give it a value (it was
null)! Doh!

"Richard" wrote:
I have a typed dataset in asp.net 2.0, that returns 2 output parameters.
Unfortunately I have not been able to capture these values:

Private Sub GetValues()

Dim ta As New dsValuesTableAdapters.MyValuesTableAdapter
Dim dt As New dsValues.MyValuesDataTable
Dim value1 As Integer
Dim value2 As Integer

Try
ta.Fill(dt, value1, value2)
'value1 and value2 both have a zero value, but should have the
value 4 (in this example)
lblValue1.Text = value1.ToString
lblValue1.Text = value1.ToString

Catch ex As Exception
Throw ex
End Try

End Sub

How can this be accomplished using typed tableadapters?

May 12 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: vivienne.netherwood | last post by:
I am developing an Access Project front end with a SQL server database. I have written a stored procedure that returns a record set and also a value via an output parameter. The procedure is as...
6
by: David Lozzi | last post by:
Here is the proc: CREATE PROCEDURE . @CID as int, @Netname as nvarchar(25), @Return as int OUTPUT AS IF EXISTS (SELECT DISTINCT netname FROM computers WHERE CompanyID = @CID AND...
1
by: Dotnet Gruven | last post by:
I've posted this in the adonet group, however it was suggested I might have better luck here.... ============================================================= I'm trying to use a typed dataset and...
1
by: Joe Van Meer | last post by:
Hi all, I have an app that currently runs through 3 seperate stored procedures each returning a count of records. What I would like to do is combine these calls into one call, however I am...
0
by: Harry Leboeuf | last post by:
Hello, I'm swicthing van Delphi to VS2005 with c#. I'm missing the quite easy datamodule from delphi and can't find some general examples on how most people are using the xsd datasources. As...
0
by: Elmo Watson | last post by:
Let's say I have a tableAdapter which uses an Insert sProc -- the last line in the sProc is a Select statement, returning the identity in code, I write something like: Dim myTA as (TableAdapter)...
4
by: scparker | last post by:
Hello, We have a stored procedure that does a basic insert of values. I am then able to retrieve the ID number created for this new record. We are currently using ASP.NET 2.0 and use N-Tier...
8
by: Martin Z | last post by:
INSERT INTO dbo.Transmission (TransmissionDate, TransmissionDirection, Filename, TransmittedData) VALUES (@TransmissionDate,@TransmissionDirection,@Filename,@TransmittedData); SELECT @retVal =...
3
by: bogdan | last post by:
Hi, I have a stored procedure that returns a single value. Example: SELECT @RowCount = COUNT(*) FROM t WHERE RETURN @RowCount I created a data set, table adapter, and adapter's method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.