473,396 Members | 2,039 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,396 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 3059
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.